body {
    background: linear-gradient(135deg, #003087 0%, #0070ba 50%, #00a8ea 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.login-container::before {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 168, 234, 0.20), rgba(0, 112, 186, 0.08), transparent 70%);
    filter: blur(8px);
    z-index: -1;
}

.login-box {
    background: #ffffff;
    padding: 2.5rem 2.75rem;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 112, 186, 0.25), 0 6px 20px rgba(0,0,0,0.12);
    width: 400px;
    text-align: center;
    border: 1px solid rgba(0, 112, 186, 0.12);
    transition: box-shadow 0.2s ease, transform 0.08s ease;
}

.login-box:hover {
    box-shadow: 0 22px 60px rgba(0, 112, 186, 0.3), 0 8px 24px rgba(0,0,0,0.14);
}

.logo {
    width: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.16));
}

h2 {
    color: #003087;
    margin: 6px 0 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Form layout */
form {
    text-align: left;
}

form p {
    margin: 0 0 14px;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.02s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #0070ba;
    box-shadow: 0 0 0 4px rgba(0, 112, 186, 0.18);
}

/* Error styles for Django forms */
ul.errorlist {
    list-style: none;
    padding: 0;
    margin: 6px 0 10px;
    color: #b91c1c;
    font-size: 13px;
}

.nonfield {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.login-btn {
    background: linear-gradient(135deg, #0070ba 0%, #005ea6 100%);
    color: #ffffff;
    border: none;
    padding: 13px 16px;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 22px rgba(0, 112, 186, 0.38);
    transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 112, 186, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.signup-link {
    margin-top: 16px;
    color: #6b7280;
}

.signup-link a {
    color: #0070ba;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Small screens */
@media (max-width: 480px) {
    .login-box {
        width: 92%;
        padding: 1.75rem 1.25rem;
    }
}
