/* Authentication pages (login, zone chooser, password reset).
   Card + glowing-input styling extracted from the reference design; the page
   shell, navbar and background imagery come from style.css. */

.login-card-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15, 41, 89, 0.08), 0 2px 6px rgba(15, 41, 89, 0.04);
    border-radius: 1.25rem;
    padding: 2.75rem 2.5rem;
    width: 100%;
}

.login-card-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-card-header h2 {
    color: #0d1b2a;
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-card-header p {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.5;
    margin: 0;
}

.login-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1565ff 0%, #0d52d8 100%);
    color: #ffffff;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(21, 101, 255, 0.25);
}

.login-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.login-input-group input {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem 0.75rem 2.85rem;
    border-radius: 0.75rem;
    border: 1.5px solid #d7e1ee;
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.login-input-group input:focus {
    outline: none;
    border-color: #1565ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.login-input-group .input-icon {
    position: absolute;
    left: 1.15rem;
    top: calc(50% + 0.5rem);
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.2s ease;
    font-size: 1rem;
    pointer-events: none;
}

.login-input-group input:focus ~ .input-icon {
    color: #1565ff;
}

.password-toggle {
    position: absolute;
    right: 1.15rem;
    top: calc(50% + 0.5rem);
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1rem;
    z-index: 5;
}

.password-toggle:hover {
    color: #475569;
}

.btn-login-submit {
    min-height: 3.5rem;
    border-radius: 0.75rem !important;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-alert {
    border-radius: 0.75rem;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    background: rgba(220, 53, 69, 0.08);
    color: #b91c1c;
}

.login-alert.login-alert-success {
    border-color: rgba(25, 135, 84, 0.25);
    background: rgba(25, 135, 84, 0.08);
    color: #15803d;
}

.login-alert i {
    font-size: 1.1rem;
}

.student-back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.student-back-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.student-back-link a:hover {
    color: #1565ff;
}

/* Zone chooser */
.zone-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.85rem;
    border: 1.5px solid #d7e1ee;
    border-radius: 0.85rem;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.zone-choice:hover {
    border-color: #1565ff;
    box-shadow: 0 6px 18px rgba(21, 101, 255, 0.12);
    transform: translateY(-1px);
}

.zone-choice .zone-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #1565ff 0%, #0d52d8 100%);
    color: #fff;
    font-size: 1.15rem;
}

.zone-choice .zone-title {
    font-weight: 700;
    display: block;
}

.zone-choice .zone-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* Plain form fields reused on the registration form */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.45rem;
}

.auth-field input,
.auth-field select {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.75rem;
    border: 1.5px solid #d7e1ee;
    background: #fff;
    font-size: 0.95rem;
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: #1565ff;
    box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12);
}

.auth-field .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    color: #b91c1c;
    font-size: 0.82rem;
}

.auth-help {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.35rem;
}

/* Honeypot — kept in the DOM (so bots fill it) but off-screen for humans. */
.hp-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}
