.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-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: #64748b;
    transition: color 0.2s ease;
    font-size: 1rem;
    pointer-events: none;
}

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

/* The icons live inside this wrapper, so they centre on the input itself
   rather than on the whole label + input group. */
.login-input-control {
    position: relative;
}

.login-input-control input {
    padding-right: 2.85rem;
}

.login-input-control .input-icon {
    top: 50%;
}

.login-input-control .password-toggle {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1rem;
    z-index: 5;
}

.login-input-control .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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.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;
}

/* ── Journey steps (e-mail confirmation limbo) ── */
.auth-steps {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
    padding: 0;
}

.auth-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: #64748b;
    padding-top: 0.55rem;
    border-top: 3px solid #e5eaf3;
    line-height: 1.25;
}

.auth-steps li span {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e5eaf3;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-steps li.done { color: #15803d; border-top-color: #86efac; }
.auth-steps li.done span { background: #dcfce7; color: #15803d; }
.auth-steps li.current { color: #1d4ed8; font-weight: 600; border-top-color: #2563eb; }
.auth-steps li.current span { background: #2563eb; color: #fff; }

.auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.1rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.7rem;
    background: #f4f8fc;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.5;
}

.auth-hint i { color: #2563eb; margin-top: 2px; }

#id_code {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
