/* Flowersstore — Auth pages (signin, signup, register-otp, forgot-password, reset-password) */

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

.flr-auth-page {
    min-height: 100vh;
    background: var(--theme-bg, #fbf6ee);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--theme-header-height, 90px) + var(--theme-stripe-height, 40px) + 2.5rem) 1.25rem 3rem;
}

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

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

.flr-auth-shell {
    position: relative;
    width: 100%;
    max-width: 460px;
    z-index: 1;
}

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

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

.flr-auth-card {
    background: var(--theme-surface, #fff9f2);
    border-radius: var(--theme-radius-lg, 10px);
    padding: 2.5rem;
    box-shadow: 0 4px 32px color-mix(in srgb, var(--theme-espresso, #4a3a30) 10%, transparent);
    border: 1px solid var(--theme-border, rgba(74, 58, 48, 0.14));
}

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

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

.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;
}

.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.18s, color 0.18s, box-shadow 0.18s;
}

.flr-auth-tab.is-active {
    background: var(--theme-bg, #fbf6ee);
    color: var(--theme-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-espresso, #4a3a30) 12%, transparent);
}

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

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

.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.18s, background 0.18s, box-shadow 0.18s;
}

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

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

/* ── 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.65rem;
    font-family: var(--theme-font-family);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-primary);
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary) 10%, var(--theme-surface-raised, #f7e9e4));
    transition: background 0.15s;
    border: none;
    cursor: pointer;
}

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

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

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

.flr-auth-forgot-link {
    font-family: var(--theme-font-family);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    transition: opacity 0.15s;
}
.flr-auth-forgot-link:hover { opacity: 0.72; }

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

.flr-auth-page .t1-auth-btn {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: var(--theme-primary);
    color: var(--theme-surface, #fff9f2);
    font-family: var(--theme-font-family);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    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.18s, transform 0.15s, box-shadow 0.18s;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--theme-primary) 28%, transparent);
}

.flr-auth-page .t1-auth-btn:hover {
    background: var(--theme-primary-hover, #8a6450);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 34%, transparent);
}

.flr-auth-page .t1-auth-btn:active { transform: translateY(0); }

/* ── 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;
}

.flr-auth-footer-text a {
    color: var(--theme-primary);
    font-weight: 700;
    text-decoration: none;
}
.flr-auth-footer-text a:hover { text-decoration: underline; }

.flr-auth-page .t1-auth-links {
    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);
    text-decoration: none;
}
.flr-auth-page .t1-auth-links a:hover { text-decoration: underline; }

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

.flr-auth-page .t1-auth-error {
    background: color-mix(in srgb, #dc2626 10%, transparent);
    border: 1px solid color-mix(in srgb, #dc2626 28%, transparent);
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: var(--theme-radius-lg, 10px);
    font-size: 0.875rem;
    font-family: var(--theme-font-family);
    margin-bottom: 0.25rem;
}

.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.75rem 1rem;
    border-radius: var(--theme-radius-lg, 10px);
    font-size: 0.875rem;
    font-family: var(--theme-font-family);
    margin-bottom: 0.25rem;
}

/* ── Password strength meter ──────────────────────────────── */

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

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

.flr-auth-meter::before {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--novo-auth-pw-strength, 0%);
    background: var(--theme-primary);
    transition: width 0.25s, background 0.25s;
}

.flr-auth-meter[data-strength="1"]::before { background: #ef4444; }
.flr-auth-meter[data-strength="2"]::before { background: #f97316; }
.flr-auth-meter[data-strength="3"]::before { background: #84cc16; }
.flr-auth-meter[data-strength="4"]::before { 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; }

/* ── 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;
}

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

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

.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; }
}
