/* Arome — Auth pages (signin, signup, verify-otp, forgot-password, reset-password) */

/* ── Hide announcement stripe on auth pages ───────────────── */

body:has([data-hide-stripe]) {
    --theme-stripe-height: 0px;
}

body:has([data-hide-stripe]) .flr-announcement {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

/* ── Page wrapper ─────────────────────────────────────────── */

.flr-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--theme-primary, #b98d77) 10%, var(--theme-bg, #fbf6ee)) 0%, var(--theme-bg, #fbf6ee) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--theme-header-height, 90px) + var(--theme-stripe-height, 0px) + 2.5rem) 1.25rem 3rem;
}

.flr-auth-signup,
.flr-auth-reset {
    padding-top: calc(var(--theme-header-height, 90px) + var(--theme-stripe-height, 0px) + 4rem);
}

/* ── Shell (centering wrapper) ────────────────────────────── */

.flr-auth-shell {
    position: relative;
    width: 100%;
    max-width: 460px;
    z-index: 1;
    animation: flr-auth-rise 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.flr-auth-shell--wide { max-width: 520px; }

@keyframes flr-auth-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Card ─────────────────────────────────────────────────── */

.flr-auth-card {
    background: var(--theme-card-bg, #ffffff);
    border-radius: var(--theme-radius-lg, 10px);
    padding: 2.5rem;
    box-shadow:
        0 0 0 1px var(--theme-border, rgba(74, 58, 48, 0.10)),
        0 4px 16px color-mix(in srgb, var(--theme-espresso, #4a3a30) 6%, transparent),
        0 20px 56px color-mix(in srgb, var(--theme-espresso, #4a3a30) 12%, transparent);
    border-top: 3px solid var(--theme-primary, #b98d77);
    position: relative;
    overflow: hidden;
}

.flr-auth-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 100px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--theme-primary, #b98d77) 5%, var(--theme-card-bg, #ffffff)) 0%,
        transparent 100%);
    pointer-events: none;
}

/* ── Header ───────────────────────────────────────────────── */

.flr-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.flr-auth-header::before {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--theme-primary, #b98d77);
    border-radius: 999px;
    margin: 0 auto 1rem;
    opacity: 0.6;
}

.flr-auth-title {
    font-family: var(--theme-font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 400;
    color: var(--theme-text, #2a2320);
    margin: 0 0 0.4rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.flr-auth-subtitle {
    font-family: var(--theme-font-family);
    font-size: 0.9375rem;
    color: var(--theme-text-muted, #726a62);
    margin: 0;
    line-height: 1.5;
}

/* ── Tabs ─────────────────────────────────────────────────── */

.flr-auth-tabs {
    display: flex;
    background: var(--theme-surface-raised, #f7e9e4);
    border-radius: 999px;
    padding: 0.3rem;
    margin: 0 0 1.75rem;
    border: 1px solid var(--theme-border, rgba(74, 58, 48, 0.12));
}

.flr-auth-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    text-align: center;
    border-radius: 999px;
    font-family: var(--theme-font-family);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-muted, #726a62);
    text-decoration: none;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}

.flr-auth-tab:not(.is-active):hover {
    color: var(--theme-text, #2a2320);
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
}

.flr-auth-tab.is-active {
    background: var(--theme-card-bg, #ffffff);
    color: var(--theme-primary, #b98d77);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--theme-espresso, #4a3a30) 14%, transparent);
    font-weight: 700;
}

/* ── Form ─────────────────────────────────────────────────── */

.flr-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.flr-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.flr-auth-label {
    font-family: var(--theme-font-family);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-text, #2a2320);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

/* ── Inputs ───────────────────────────────────────────────── */

.flr-auth-page .t1-auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--theme-surface-raised, #f7e9e4);
    border: 1.5px solid var(--theme-border, rgba(74, 58, 48, 0.14));
    border-radius: var(--theme-radius-lg, 10px);
    font-size: 0.9375rem;
    color: var(--theme-text, #2a2320);
    font-family: var(--theme-font-family);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    appearance: none;
}

.flr-auth-page .t1-auth-input:hover:not(:focus):not(:disabled) {
    border-color: color-mix(in srgb, var(--theme-primary) 45%, transparent);
    background: color-mix(in srgb, var(--theme-surface-raised, #f7e9e4) 80%, var(--theme-surface, #fff9f2));
}

.flr-auth-page .t1-auth-input:focus {
    outline: none;
    border-color: var(--theme-primary, #b98d77);
    background: var(--theme-surface, #fff9f2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent);
}

.flr-auth-page .t1-auth-input::placeholder {
    color: var(--theme-text-faint, #c6b8ac);
}

/* ── Autofill override ────────────────────────────────────── */

.flr-auth-page .t1-auth-input:-webkit-autofill,
.flr-auth-page .t1-auth-input:-webkit-autofill:hover,
.flr-auth-page .t1-auth-input:-webkit-autofill:focus,
.flr-auth-page .t1-auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--theme-surface-raised, #f7e9e4) inset !important;
    box-shadow: 0 0 0 1000px var(--theme-surface-raised, #f7e9e4) inset !important;
    -webkit-text-fill-color: var(--theme-text, #2a2320) !important;
    caret-color: var(--theme-text, #2a2320);
    border-color: var(--theme-border, rgba(74, 58, 48, 0.14)) !important;
    transition: background-color 0s 600000s, color 0s 600000s;
}

/* ── Password toggle ──────────────────────────────────────── */

.flr-auth-page .novo-auth-password-wrap { position: relative; }

.flr-auth-page .novo-auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.35rem 0.75rem;
    font-family: var(--theme-font-family);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--theme-primary, #b98d77);
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary) 10%, var(--theme-surface-raised, #f7e9e4));
    border: 1px solid color-mix(in srgb, var(--theme-primary) 22%, transparent);
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.flr-auth-page .novo-auth-password-toggle:hover {
    background: color-mix(in srgb, var(--theme-primary) 20%, var(--theme-surface-raised, #f7e9e4));
    border-color: color-mix(in srgb, var(--theme-primary) 42%, transparent);
    color: var(--theme-coffee, #6f4f3a);
}

.flr-auth-page .novo-auth-password-toggle:active {
    transform: translateY(-50%) scale(0.94);
}

/* ── Forgot / actions row ─────────────────────────────────── */

.flr-auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -0.5rem;
}

.flr-auth-forgot-link {
    font-family: var(--theme-font-family);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--theme-primary, #b98d77);
    text-decoration: none;
    transition: color 0.18s;
}

.flr-auth-forgot-link:hover {
    color: var(--theme-coffee, #6f4f3a);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Submit button ────────────────────────────────────────── */

.flr-auth-page .t1-auth-btn {
    width: 100%;
    padding: 0.975rem 1.25rem;
    background: var(--theme-primary, #b98d77);
    color: #ffffff;
    font-family: var(--theme-font-family);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow:
        0 2px 6px color-mix(in srgb, var(--theme-primary) 30%, transparent),
        0 8px 24px color-mix(in srgb, var(--theme-primary) 28%, transparent);
    position: relative;
    overflow: hidden;
}

.flr-auth-page .t1-auth-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 55%);
    border-radius: inherit;
    pointer-events: none;
}

.flr-auth-page .t1-auth-btn:hover:not(:disabled) {
    background: var(--theme-primary-hover, #8a6450);
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px color-mix(in srgb, var(--theme-primary) 30%, transparent),
        0 14px 32px color-mix(in srgb, var(--theme-primary) 34%, transparent);
}

.flr-auth-page .t1-auth-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--theme-primary) 22%, transparent);
}

.flr-auth-page .t1-auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Ghost button variant ─────────────────────────────────── */

.flr-auth-page .t1-auth-btn--ghost {
    background: transparent;
    color: var(--theme-primary, #b98d77);
    border: 1.5px solid color-mix(in srgb, var(--theme-primary) 40%, transparent);
    box-shadow: none;
}

.flr-auth-page .t1-auth-btn--ghost::after { display: none; }

.flr-auth-page .t1-auth-btn--ghost:hover:not(:disabled) {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    border-color: color-mix(in srgb, var(--theme-primary) 60%, transparent);
    color: var(--theme-coffee, #6f4f3a);
    box-shadow: none;
    transform: none;
}

.flr-auth-page .t1-auth-btn--ghost:active:not(:disabled) {
    transform: none;
    background: color-mix(in srgb, var(--theme-primary) 14%, transparent);
    box-shadow: none;
}

/* ── Footer / back links ──────────────────────────────────── */

.flr-auth-footer-text {
    text-align: center;
    font-family: var(--theme-font-family);
    font-size: 0.875rem;
    color: var(--theme-text-muted, #726a62);
    margin: 1.25rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--theme-border, rgba(74, 58, 48, 0.10));
}

.flr-auth-footer-text a {
    color: var(--theme-primary, #b98d77);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s;
}

.flr-auth-footer-text a:hover {
    color: var(--theme-coffee, #6f4f3a);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flr-auth-page .t1-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
}

.flr-auth-page .t1-auth-links a {
    font-family: var(--theme-font-family);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary, #b98d77);
    text-decoration: none;
    transition: color 0.18s;
}

.flr-auth-page .t1-auth-links a:hover {
    color: var(--theme-coffee, #6f4f3a);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Error / success banners ──────────────────────────────── */

.flr-auth-page .t1-auth-error,
.flr-auth-page .sf-auth__alert {
    display: none;
    background: color-mix(in srgb, #dc2626 8%, transparent);
    border: 1px solid color-mix(in srgb, #dc2626 25%, transparent);
    color: #b91c1c;
    padding: 0.8rem 1rem;
    border-radius: var(--theme-radius-lg, 10px);
    font-size: 0.875rem;
    font-family: var(--theme-font-family);
    line-height: 1.5;
}

.flr-auth-page .t1-auth-error.is-visible,
.flr-auth-page .sf-auth__alert.is-visible,
.flr-auth-page .sf-auth__alert:not(:empty) {
    display: block;
}

.flr-auth-page .flr-auth-field-error,
.flr-auth-page [data-uk-phone-error] {
    display: none;
    margin: 0.3rem 0 0;
    font-family: var(--theme-font-family);
    font-size: 0.8rem;
    font-weight: 500;
    color: #dc2626;
}

.flr-auth-page .flr-auth-field-error:not([hidden]),
.flr-auth-page [data-uk-phone-error]:not([hidden]) {
    display: block;
    user-select: text;
}

.arm-auth-copy-num {
    display: inline;
    margin: 0 1px;
    padding: 0 3px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    user-select: all;
    -webkit-user-select: all;
}

.arm-auth-copy-num:hover,
.arm-auth-copy-num:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.arm-auth-copy-num.is-copied {
    text-decoration: none;
    color: #4ade80;
}

.flr-auth-page .t1-auth-input.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 14%, transparent);
}

.flr-auth-page .sf-auth__alert--success,
.flr-auth-page .flr-auth-success-msg {
    display: block;
    background: color-mix(in srgb, #16a34a 8%, transparent);
    border: 1px solid color-mix(in srgb, #16a34a 28%, transparent);
    color: #15803d;
    padding: 0.8rem 1rem;
    border-radius: var(--theme-radius-lg, 10px);
    font-size: 0.875rem;
    font-family: var(--theme-font-family);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.5;
}

.flr-auth-page .t1-auth-message {
    background: color-mix(in srgb, var(--theme-primary) 8%, var(--theme-surface, #fff9f2));
    border: 1px solid color-mix(in srgb, var(--theme-primary) 22%, transparent);
    color: color-mix(in srgb, var(--theme-primary) 80%, var(--theme-text, #2a2320));
    padding: 0.8rem 1rem;
    border-radius: var(--theme-radius-lg, 10px);
    font-size: 0.875rem;
    font-family: var(--theme-font-family);
    line-height: 1.5;
}

/* ── Password match indicator ─────────────────────────────── */

.flr-auth-page .sf-auth__match {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    font-family: var(--theme-font-family);
    font-weight: 500;
}

.flr-auth-page .sf-auth__match.is-ok    { color: #16a34a; }
.flr-auth-page .sf-auth__match.is-error { color: #dc2626; }

/* ── Password strength (sf-auth variant) ──────────────────── */

.flr-auth-page .sf-auth__strength {
    display: none;
    margin-top: 0.4rem;
}

.flr-auth-page .sf-auth__strength.is-visible { display: block; }

.flr-auth-page .sf-auth__strength-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--theme-surface-raised, #f7e9e4);
    overflow: hidden;
}

.flr-auth-page .sf-auth__strength-bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--theme-primary);
    transition: width 0.25s ease, background 0.25s ease;
}

.flr-auth-page .sf-auth__strength[data-level="weak"]   .sf-auth__strength-bar > span,
.flr-auth-page .sf-auth__strength[data-level="1"]      .sf-auth__strength-bar > span { width: 25%; background: #ef4444; }

.flr-auth-page .sf-auth__strength[data-level="fair"]   .sf-auth__strength-bar > span,
.flr-auth-page .sf-auth__strength[data-level="2"]      .sf-auth__strength-bar > span { width: 50%; background: #f97316; }

.flr-auth-page .sf-auth__strength[data-level="good"]   .sf-auth__strength-bar > span,
.flr-auth-page .sf-auth__strength[data-level="3"]      .sf-auth__strength-bar > span { width: 75%; background: #eab308; }

.flr-auth-page .sf-auth__strength[data-level="strong"] .sf-auth__strength-bar > span,
.flr-auth-page .sf-auth__strength[data-level="4"]      .sf-auth__strength-bar > span,
.flr-auth-page .sf-auth__strength[data-level="5"]      .sf-auth__strength-bar > span { width: 100%; background: #16a34a; }

.flr-auth-page .sf-auth__strength-label {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--theme-text-muted, #726a62);
    font-family: var(--theme-font-family);
}

/* ── Password strength meter (flr-auth-meter variant) ──────── */

.flr-auth-meter-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: -0.35rem;
}

.flr-auth-meter {
    height: 4px;
    border-radius: 999px;
    background: var(--theme-surface-raised, #f7e9e4);
    overflow: hidden;
    position: relative;
}

.flr-auth-meter > span {
    display: block;
    height: 100%;
    width: var(--novo-auth-pw-strength, 0%);
    border-radius: inherit;
    background: var(--theme-primary);
    transition: width 0.25s ease, background 0.25s ease;
}

.flr-auth-meter[data-strength="1"] > span { background: #ef4444; }
.flr-auth-meter[data-strength="2"] > span { background: #f97316; }
.flr-auth-meter[data-strength="3"] > span { background: #84cc16; }
.flr-auth-meter[data-strength="4"] > span { background: #22c55e; }

.flr-auth-meter-hint {
    font-size: 0.78rem;
    color: var(--theme-text-muted, #726a62);
    font-family: var(--theme-font-family);
    margin: 0;
}

/* ── Policy text ──────────────────────────────────────────── */

.flr-auth-policy {
    font-family: var(--theme-font-family);
    font-size: 0.8125rem;
    color: var(--theme-text-muted, #726a62);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

.flr-auth-policy a {
    color: var(--theme-primary);
    font-weight: 600;
    text-decoration: none;
}

.flr-auth-policy a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── OTP inputs ───────────────────────────────────────────── */

.flr-auth-page .t1-otp-intro {
    text-align: center;
    font-family: var(--theme-font-family);
    font-size: 0.9375rem;
    color: var(--theme-text-muted, #726a62);
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

.flr-auth-page .t1-otp-intro strong {
    color: var(--theme-text, #2a2320);
    font-weight: 700;
}

.flr-auth-otp-label {
    font-family: var(--theme-font-family);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-text, #2a2320);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.45rem;
    display: block;
}

.flr-auth-page .t1-otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.flr-auth-page .t1-otp-input {
    aspect-ratio: 1;
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    padding: 0;
    font-family: var(--theme-font-family);
    border-radius: var(--theme-radius-lg, 10px);
}

.flr-auth-page .t1-otp-resend {
    text-align: center;
    margin-top: 1.25rem;
    font-family: var(--theme-font-family);
    font-size: 0.875rem;
    color: var(--theme-text-muted, #726a62);
}

.flr-auth-page .t1-otp-resend p { margin: 0; }

.flr-auth-page .t1-otp-resend a {
    color: var(--theme-primary);
    font-weight: 700;
    text-decoration: none;
}

.flr-auth-page .t1-otp-resend a:hover { text-decoration: underline; }

.flr-auth-page .t1-otp-timer {
    display: block;
    font-size: 0.78rem;
    color: var(--theme-text-faint, #c6b8ac);
    margin-top: 0.3rem;
}

/* ── OTP single-input accent (verify-otp, reset-password) ─── */

.flr-auth-page .flr-auth-form input[inputmode="numeric"].t1-auth-input {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    background: color-mix(in srgb, var(--theme-primary) 5%, var(--theme-surface-raised, #f7e9e4));
    border-color: color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.flr-auth-page .flr-auth-form input[inputmode="numeric"].t1-auth-input:focus {
    border-color: var(--theme-primary, #b98d77);
    background: var(--theme-surface, #fff9f2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent);
}

/* ── Divider ──────────────────────────────────────────────── */

.flr-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--theme-font-family);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--theme-text-faint, #c6b8ac);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.flr-auth-divider::before,
.flr-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--theme-border, rgba(74, 58, 48, 0.14));
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 480px) {
    .flr-auth-card {
        padding: 2rem 1.5rem;
    }

    .flr-auth-page .t1-otp-inputs { gap: 0.35rem; }
    .flr-auth-page .t1-otp-input  { font-size: 1.15rem; }
}

/* ── Aromè auth overlay ── */

body:has(.arm-auth) {
    background: #0b0b0b;
}

body:has(.arm-auth) .flr-footer,
body:has(.arm-auth) #footer {
    display: none !important;
}

.arm-auth {
    --arm-gold: #ffa10c;
    --arm-ink: #ffffff;
    --arm-paper: #171717;
    --arm-muted: rgba(255, 255, 255, 0.58);
    --arm-line: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(ellipse 50% 42% at 8% 12%, rgba(255, 161, 12, 0.1), transparent 58%),
        radial-gradient(ellipse 42% 36% at 96% 8%, rgba(255, 45, 154, 0.06), transparent 55%),
        #0b0b0b;
    min-height: 100vh;
    padding: calc(var(--theme-header-height, 90px) + 2.4rem) 1.25rem 4rem;
}

.arm-auth .flr-auth-shell {
    max-width: 440px;
}

.arm-auth .flr-auth-shell--wide {
    max-width: 500px;
}

.arm-auth .flr-auth-card {
    background: var(--arm-paper);
    border: 1px solid var(--arm-line);
    border-top: 3px solid var(--arm-gold);
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
    padding: 2.35rem 2.1rem 2rem;
    overflow: hidden;
    color: #fff;
}

.arm-auth .flr-auth-card::before {
    height: 88px;
    background: linear-gradient(180deg, rgba(255, 161, 12, 0.08) 0%, transparent 100%);
}

.arm-auth .flr-auth-header::before {
    display: none;
}

.arm-auth .arm-auth__kicker {
    margin: 0 0 10px;
    font-family: Jost, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--arm-gold);
}

.arm-auth .flr-auth-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
    color: #fff;
}

.arm-auth .flr-auth-subtitle {
    font-family: Jost, sans-serif;
    color: var(--arm-muted);
}

.arm-auth .flr-auth-tabs {
    background: #0f0f0f;
    border: 1px solid var(--arm-line);
    border-radius: 999px;
    padding: 4px;
}

.arm-auth .flr-auth-tab {
    color: rgba(255, 255, 255, 0.62);
    font-family: Jost, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.arm-auth .flr-auth-tab:not(.is-active):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.arm-auth .flr-auth-tab.is-active {
    background: #ffa10ce0;
    color: #111;
    box-shadow: 0 6px 18px rgba(255, 161, 12, 0.28);
}

.arm-auth .flr-auth-label,
.arm-auth .flr-auth-otp-label {
    color: rgba(255, 255, 255, 0.88);
    font-family: Jost, sans-serif;
}

.arm-auth .t1-auth-input {
    background: #101010;
    border: 1.5px solid var(--arm-line);
    border-radius: 12px;
    color: #fff;
    font-family: Jost, sans-serif;
}

.arm-auth .t1-auth-input:hover:not(:focus):not(:disabled) {
    border-color: rgba(255, 255, 255, 0.28);
    background: #101010;
}

.arm-auth .t1-auth-input:focus {
    border-color: var(--arm-gold);
    background: #101010;
    box-shadow: 0 0 0 3px rgba(255, 161, 12, 0.18);
}

.arm-auth .t1-auth-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.arm-auth .t1-auth-input:-webkit-autofill,
.arm-auth .t1-auth-input:-webkit-autofill:hover,
.arm-auth .t1-auth-input:-webkit-autofill:focus,
.arm-auth .t1-auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #101010 inset !important;
    box-shadow: 0 0 0 1000px #101010 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
}

.arm-auth .novo-auth-password-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.arm-auth .novo-auth-password-toggle:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.arm-auth .flr-auth-forgot-link,
.arm-auth .flr-auth-footer-text a,
.arm-auth .t1-auth-links a,
.arm-auth .flr-auth-policy a,
.arm-auth .t1-otp-resend a {
    color: var(--arm-gold);
}

.arm-auth .flr-auth-forgot-link:hover,
.arm-auth .flr-auth-footer-text a:hover,
.arm-auth .t1-auth-links a:hover,
.arm-auth .flr-auth-policy a:hover,
.arm-auth .t1-otp-resend a:hover {
    color: #fff;
}

.arm-auth .t1-auth-btn {
    background: #ffa10ce0;
    color: #111;
    border-radius: 10px;
    letter-spacing: 0.12em;
    box-shadow: 0 8px 22px rgba(255, 161, 12, 0.28);
}

.arm-auth .t1-auth-btn::after {
    display: none;
}

.arm-auth .t1-auth-btn:hover:not(:disabled) {
    background: #2a2a2a;
    color: #fff;
    transform: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.arm-auth .t1-auth-btn:active:not(:disabled) {
    background: #1f1f1f;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.arm-auth .t1-auth-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid var(--arm-line);
    box-shadow: none;
}

.arm-auth .t1-auth-btn--ghost:hover:not(:disabled) {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.arm-auth .flr-auth-footer-text,
.arm-auth .t1-auth-links,
.arm-auth .flr-auth-policy,
.arm-auth .t1-otp-intro,
.arm-auth .t1-otp-resend,
.arm-auth .flr-auth-meter-hint,
.arm-auth .sf-auth__strength-label {
    color: var(--arm-muted);
    font-family: Jost, sans-serif;
}

.arm-auth .flr-auth-footer-text {
    border-top-color: var(--arm-line);
}

.arm-auth .flr-auth-divider {
    color: var(--arm-muted);
}

.arm-auth .flr-auth-divider::before,
.arm-auth .flr-auth-divider::after {
    background: var(--arm-line);
}

.arm-auth .flr-auth-meter,
.arm-auth .sf-auth__strength-bar {
    background: rgba(255, 255, 255, 0.1);
}

.arm-auth .t1-otp-intro strong {
    color: #fff;
}

.arm-auth .flr-auth-form input[inputmode="numeric"].t1-auth-input {
    background: #101010;
    border-color: rgba(255, 161, 12, 0.4);
    letter-spacing: 0.28em;
    color: #fff;
}

.arm-auth .flr-auth-form input[inputmode="numeric"].t1-auth-input:focus {
    border-color: var(--arm-gold);
    background: #101010;
    box-shadow: 0 0 0 3px rgba(255, 161, 12, 0.18);
}

@media (max-width: 480px) {
    .arm-auth .flr-auth-card {
        padding: 1.7rem 1.2rem 1.5rem;
        border-radius: 16px;
    }
}