/* =========================================================
   login.css — Two-step sign-in page
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500&display=swap');

.login-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, #f7f9fc 0%, #eef2f9 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2.25rem;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(15, 31, 61, 0.10);
    position: relative;
    overflow: hidden;
}

/* Navy top accent bar */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f1f3d, #2a4a80);
}

/* ── Step icon ── */
.login-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2f9, #dbe4f5);
    color: #0f1f3d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* ── Typography ── */
.login-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f1f3d;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9rem;
    color: #6b7a99;
    margin-bottom: 1.75rem;
    word-break: break-all;
}

/* ── Input ── */
.login-input {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafafa;
}

.login-input:focus {
    border-color: #2a4a80;
    box-shadow: 0 0 0 3px rgba(42, 74, 128, 0.1);
    outline: none;
    background: #fff;
}

/* ── Password wrapper ── */
.login-password-wrap {
    position: relative;
}

.login-password-wrap .login-input {
    padding-right: 2.8rem;
    width: 100%;
}

.login-pw-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7a99;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.login-pw-toggle:hover { color: #0f1f3d; }

/* ── Buttons ── */
.login-btn-primary {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0f1f3d, #2a4a80);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: opacity 0.15s, transform 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
}

.login-btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}

.login-btn-primary svg { flex-shrink: 0; }

.login-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7a99;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.25rem;
    transition: color 0.15s;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.login-back-btn:hover { color: #0f1f3d; }

/* ── Error message ── */
.login-error {
    font-size: 0.82rem;
    color: #be123c;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* ── Turnstile container ── */
.login-turnstile {
    min-height: 65px;
    display: flex;
    align-items: center;
}

/* ── Form labels ── */
.form-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f1f3d;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

/* ── Step transitions ── */
#step-email,
#step-password {
    animation: loginFadeIn 0.22s ease;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
