/* ═══════════════════════════════════════════════════════════════
   STROVE AUTH - External Stylesheet
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --brand-dark: #0d0d0d;
    --brand-accent: #c8a96e;
    --brand-light: #faf8f5;
    --brand-border: #e8e2d9;
    --brand-muted: #6b6b6b;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--brand-light);
    min-height: 100vh;
    margin: 0;
    display: flex;
}

/* ── LEFT PANEL ────────────────────────────────────────────── */
.auth-panel-left {
    width: 45%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: none;
}

@media (min-width:992px) {
    .auth-panel-left {
        display: flex;
        flex-direction: column;
    }
}

.auth-panel-left img.bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-panel-left .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(13, 13, 13, .75) 0%, rgba(13, 13, 13, .45) 50%, rgba(200, 169, 110, .3) 100%);
}

.auth-panel-left .panel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2.5rem 3rem;
}

.panel-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.panel-brand span {
    color: var(--brand-accent);
}

.panel-quote {
    margin-bottom: 3rem;
}

.panel-quote h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.panel-quote h2 em {
    color: var(--brand-accent);
    font-style: normal;
}

.panel-quote p {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
    line-height: 1.7;
    max-width: 340px;
}

.panel-features {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.panel-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255, 255, 255, .75);
    font-size: .84rem;
}

.panel-feature i {
    color: var(--brand-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── RIGHT PANEL ───────────────────────────────────────────── */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    min-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.mobile-brand {
    text-align: center;
    margin-bottom: 2rem;
    display: block;
}

.mobile-brand-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: none;
}

.mobile-brand-text span {
    color: var(--brand-accent);
}

@media (min-width:992px) {
    .mobile-brand {
        display: none;
    }
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: .35rem;
}

.auth-card-subtitle {
    font-size: .84rem;
    color: var(--brand-muted);
    margin-bottom: 1.75rem;
}

/* ── FORM CONTROLS ─────────────────────────────────────────── */
.auth-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .3rem;
    display: block;
}

.auth-input {
    width: 100%;
    border: 1.5px solid var(--brand-border);
    border-radius: 0 !important;
    font-size: .9rem;
    padding: .7rem .9rem;
    font-family: var(--font-body);
    background: #fff;
    color: var(--brand-dark);
    transition: border-color .2s;
    outline: none;
}

.auth-input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, .12);
}

.auth-input.is-invalid {
    border-color: #ef4444;
}

.auth-input::placeholder {
    color: #bbb;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .auth-input {
    padding-right: 2.75rem;
}

.input-icon-wrap .toggle-pw {
    position: absolute;
    right: .8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.input-icon-wrap .toggle-pw:hover {
    color: var(--brand-dark);
}

.auth-error {
    font-size: .78rem;
    color: #ef4444;
    margin-top: .3rem;
}

/* ── DIVIDER ───────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
    color: var(--brand-muted);
    font-size: .78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--brand-border);
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-auth {
    width: 100%;
    background: var(--brand-dark);
    color: #fff;
    border: none;
    padding: .8rem;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .4px;
    border-radius: 0;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn-auth:hover {
    background: var(--brand-accent);
}

.btn-auth:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.btn-social {
    width: 100%;
    border: 1.5px solid var(--brand-border);
    background: #fff;
    padding: .65rem;
    font-size: .84rem;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    transition: border-color .2s, background .2s;
    color: var(--brand-dark);
}

.btn-social:hover {
    border-color: var(--brand-dark);
    background: #faf8f5;
}

/* ── LINKS ─────────────────────────────────────────────────── */
.auth-link {
    color: var(--brand-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: .85rem;
    transition: color .15s;
}

.auth-link:hover {
    color: #b5923a;
    text-decoration: underline;
}

/* ── ALERTS ────────────────────────────────────────────────── */
.auth-alert {
    padding: .75rem 1rem;
    font-size: .84rem;
    border-radius: 0;
    border-left: 3px solid var(--brand-accent);
    background: #fdf8ef;
    color: #7c6222;
    margin-bottom: 1.25rem;
}

.auth-alert.success {
    border-left-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

/* ── PASSWORD STRENGTH ─────────────────────────────────────── */
.pw-strength-wrap {
    margin-top: .4rem;
    display: none;
}

.pw-strength-bar {
    height: 3px;
    background: var(--brand-border);
    border-radius: 2px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width .3s, background .3s;
}

.pw-strength-label {
    font-size: .72rem;
    margin-top: .2rem;
    color: var(--brand-muted);
}

/* ── FORM STEPS ────────────────────────────────────────────── */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}
/* ── INLINE STYLE EXTRACTIONS ──────────────────────────────── */
.auth-back-link {
    font-size: .82rem;
}

.auth-subtitle-spaced {
    margin-bottom: 1.5rem;
}

.auth-bottom-note {
    font-size: .84rem;
    color: var(--brand-muted);
}

.auth-bottom-note-sm {
    font-size: .85rem;
    color: var(--brand-muted);
}

.auth-bottom-note-xs {
    font-size: .8rem;
    color: var(--brand-muted);
}

.auth-forgot-link {
    font-size: .76rem;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 .7rem;
    background: #f4f1ed;
    border: 1.5px solid var(--brand-border);
    border-right: none;
    font-size: .85rem;
    color: var(--brand-muted);
    white-space: nowrap;
}

.phone-input-flex {
    flex: 1;
}

.pw-match-msg {
    font-size: .75rem;
    margin-top: .3rem;
}

.pw-match-ok {
    color: #16a34a;
}

.pw-match-err {
    color: #ef4444;
}

.verify-icon-wrap {
    width: 72px;
    height: 72px;
    background: #fdf8ef;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.verify-icon {
    font-size: 2rem;
    color: var(--brand-accent);
}

.verify-subtitle {
    margin-bottom: 0;
}

.verify-email-strong {
    color: var(--brand-dark);
}

.btn-auth-secondary {
    background: transparent;
    color: var(--brand-muted);
    border: 1.5px solid var(--brand-border);
}

.optional-label {
    font-weight: 400;
    text-transform: none;
    color: var(--brand-muted);
}
