/* auth_style.css — the login steps: login.html, login_mfa.html,
   login_mfa_setup.html, change_password_required.html */

#login-page {
    --ink: #1d2a22;
    --ink-soft: #5b6a61;
    --line: #d9dfd9;
    --line-strong: #b9c3ba;
    --green: #2f6b3f;
    --green-deep: #24512f;
    --red: #a23a2b;
    --red-tint: #fbe9e6;
    --radius: 8px;
    font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    padding: 56px 20px 64px;
}

#login-page * {
    box-sizing: border-box;
}

.login-card {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 32px 36px;
}

.login-card.wide {
    max-width: 460px;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}

.login-card .lede {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0 0 22px;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    margin: 0 0 6px;
}

.login-form .field {
    margin-bottom: 16px;
}

.login-form .help {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 6px 0 0;
}

#login-page input[type="text"],
#login-page input[type="password"] {
    font: inherit;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

/* The 6-digit code: large, spaced digits that are easy to check */
#login-page input.code-input {
    height: 56px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

#login-page input:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px;
    border-color: var(--green);
}

#login-page button[type="submit"] {
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid var(--green-deep);
    background: var(--green);
    color: #fff;
    cursor: pointer;
}

#login-page button[type="submit"]:hover {
    background: var(--green-deep);
}

#login-page button[type="submit"]:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

.form-error {
    background: var(--red-tint);
    border-left: 4px solid var(--red);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin: 0 0 18px;
    font-size: 15px;
}

/* Two-factor setup */
.setup-steps {
    margin: 0 0 18px;
    padding-left: 22px;
}

.setup-steps li {
    margin-bottom: 8px;
}

.qr {
    display: flex;
    justify-content: center;
    margin: 4px 0 10px;
}

.qr svg {
    width: 200px;
    height: 200px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.secret {
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center;
    margin: 0 0 20px;
}

.secret code {
    display: inline-block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--ink);
    word-spacing: 0.3em;
    user-select: all;
}

.secret a,
.login-footer {
    margin-top: 18px;
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center;
}

.login-footer a {
    color: var(--green-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--green);
}

@media (max-width: 480px) {
    #login-page {
        padding: 20px 12px 40px;
    }
    .login-card {
        padding: 24px 20px;
    }
}
