/* Shared Qolified styling for recovery, verification and 2FA challenge pages. */
.auth-flow-page {
    --cloud: #f7f5f1;
    --mist: #e3eef2;
    --steel: #3e6e85;
    --coral: #f2946b;
    --deep-slate: #2f4b57;
    --taupe: #8b8580;
    --white: #ffffff;
    --success: #2e7d6f;
    --error: #c0392b;
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
    background: var(--cloud);
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.auth-flow-page, .auth-flow-page * { box-sizing: border-box; }
.auth-flow-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(47, 75, 87, 0.1);
}
.auth-flow-logo {
    margin-bottom: 8px;
    color: var(--steel);
    font: 700 28px/1.2 "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
    text-align: center;
}
.auth-flow-logo span { color: var(--coral); }
.auth-flow-title {
    margin: 22px 0 8px;
    color: var(--deep-slate);
    font: 700 24px/1.25 "Space Grotesk", sans-serif;
    text-align: center;
}
.auth-flow-copy {
    margin: 0 0 24px;
    color: var(--taupe);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
.auth-flow-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--deep-slate);
    font-size: 14px;
    font-weight: 600;
}
.auth-flow-form input:not([type="hidden"]) {
    width: 100%;
    margin: 0 0 18px;
    padding: 12px 16px;
    color: var(--deep-slate);
    background: var(--white);
    border: 1.5px solid var(--mist);
    border-radius: 8px;
    outline: none;
    font: 14px/1.4 "IBM Plex Sans", sans-serif;
}
.auth-flow-form input:not([type="hidden"]):focus {
    border-color: var(--steel);
    box-shadow: 0 0 0 3px rgba(62, 110, 133, 0.12);
}
.auth-flow-hint {
    margin: -12px 0 18px;
    color: var(--taupe);
    font-size: 12px;
    line-height: 1.5;
}
.auth-flow-button {
    width: 100%;
    padding: 14px;
    color: var(--cloud);
    background: var(--steel);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: 600 16px/1.4 "Space Grotesk", sans-serif;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.auth-flow-button:hover {
    background: var(--deep-slate);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 75, 87, 0.15);
}
.auth-flow-button:disabled {
    background: var(--taupe);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.auth-flow-button.secondary {
    color: var(--steel);
    background: var(--white);
    border: 1.5px solid var(--steel);
}
.auth-flow-button.secondary:hover { color: var(--white); background: var(--steel); }
.auth-flow-message {
    display: none;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.auth-flow-error {
    color: var(--error);
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.2);
}
.auth-flow-success {
    color: var(--success);
    background: rgba(46, 125, 111, 0.08);
    border: 1px solid rgba(46, 125, 111, 0.2);
}
.auth-flow-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.auth-flow-link {
    display: block;
    margin-top: 18px;
    color: var(--steel);
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}
.auth-flow-link:hover { color: var(--deep-slate); text-decoration: underline; }
.auth-flow-invalid {
    padding: 16px;
    color: var(--error);
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
.auth-flow-code-input {
    text-align: center;
    letter-spacing: 0.18em;
    font-size: 18px !important;
}
@media (max-width: 520px) {
    .auth-flow-page { align-items: flex-start; padding: 20px 14px; }
    .auth-flow-card { padding: 32px 24px; }
}
