/* Auth pages (login, forgot-password, reset-password, MFA, setup) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    background: #f6f5f1;
    color: #1c1b18;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    background: #fff;
    border: 1px solid #e8e6df;
    border-radius: 14px;
    padding: 40px 44px 36px;
    width: 380px;
    box-shadow: 0 4px 24px rgba(15,23,42,.07), 0 1px 4px rgba(15,23,42,.04);
}

.card-wide { width: 440px; }

.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.logo-icon {
    width: 36px; height: 36px;
    background: #c8a059;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c1b18;
    letter-spacing: -0.01em;
}

h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1c1b18;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.subtitle { font-size: 0.82rem; color: #9a9888; margin-bottom: 24px; line-height: 1.5; }

.error-box   { background: #faeae4; border: 1px solid #e8c4b4; color: #96503a;   border-radius: 7px; padding: 10px 14px; font-size: 0.83rem; font-weight: 500; margin-bottom: 18px; }
.success-box { background: #e9f3ea; border: 1px solid #b8d8ba; color: #3d6142;   border-radius: 7px; padding: 10px 14px; font-size: 0.83rem; font-weight: 500; margin-bottom: 18px; }
.info-box    { background: #e3f0fb; border: 1px solid #b8d8f5; color: #2c69a8;   border-radius: 7px; padding: 10px 14px; font-size: 0.83rem; font-weight: 500; margin-bottom: 18px; }

label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a4840;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.opt-label-hint { font-weight: 400; color: #9a9888; }

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e8e6df;
    border-radius: 7px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1c1b18;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 14px;
}

input:focus { border-color: #a3824a; box-shadow: 0 0 0 3px rgba(163,130,74,.12); }

/* OTP code input on MFA verify page */
.otp-input {
    font-size: 1.1rem !important;
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    letter-spacing: 0.15em !important;
    text-align: center !important;
}

.btn {
    width: 100%;
    padding: 10px;
    background: #a3824a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s;
}
.btn:hover { background: #8a6d3b; }

.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 0.82rem;
    color: #a3824a;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}
.back-link:hover { text-decoration: underline; }

.hint { font-size: 0.78rem; color: #9a9888; text-align: center; margin-top: 16px; }

.link-forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    color: #a3824a;
    text-decoration: none;
}
.link-forgot:hover { text-decoration: underline; }

.btn-cancel-link {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

/* Setup wizard extras */
.row2         { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.divider      { border: none; border-top: 1px solid #e8e6df; margin: 6px 0 18px; }
.section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #9a9888; margin-bottom: 14px; }

/* text-center and mt-16 utilities used by mfa_verify */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
