/* ══════════════════════════════════════
   AUTH / ACCOUNT SPECIFIC STYLES
══════════════════════════════════════ */

/* ── Split Layout ── */
.auth-split {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--top-h) - var(--nav-h) - var(--bar-h));
}

@media (max-width: 767px) {
    .auth-split {
        min-height: calc(100vh - var(--top-h) - var(--bar-h));
    }
}

/* ── Decorative left panel ── */
.auth-deco {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #111009 0%, #1e1610 40%, #2a1f0e 70%, #1a1208 100%);
}

@media (max-width: 991px) {
    .auth-deco {
        flex: 0 0 36%;
    }
}

@media (max-width: 767px) {
    .auth-deco {
        display: none;
    }
}

.auth-deco-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 35% 40%, rgba(201, 168, 76, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 45%);
}

.auth-deco-bottle {
    position: absolute;
    right: -8%;
    top: 50%;
    transform: translateY(-50%);
    width: 70%;
    opacity: 0.07;
}

.auth-deco-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 5vw, 56px);
    z-index: 2;
}

.deco-quote {
    font-family: var(--fd);
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.deco-quote em {
    color: var(--gold-light);
}

.deco-attr {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.deco-logo-area {
    margin-bottom: 40px;
}

.deco-logo {
    font-family: var(--fd);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.deco-logo em {
    color: var(--gold-light);
    font-style: italic;
}

.deco-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.14em;
    margin-top: 4px;
    font-style: italic;
}

.deco-gold-bar {
    width: 36px;
    height: 1px;
    background: var(--gold);
    margin: 20px 0;
    opacity: 0.6;
}

/* ── Form right panel ── */
.auth-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 64px) clamp(20px, 6vw, 72px);
    background: var(--white);
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

/* ── View Switching ── */
.auth-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.auth-view.active {
    display: block;
    animation: viewIn .35s ease forwards;
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form Header ── */
.form-eyebrow {
    margin-bottom: 28px;
}

.form-eyebrow .label-tag {
    margin-bottom: 14px;
}

.form-eyebrow h1 {
    font-family: var(--fd);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.form-eyebrow h1 em {
    color: var(--gold);
    font-style: italic;
}

.form-eyebrow p {
    font-size: 13px;
    color: var(--mid-grey);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ── Form Fields ── */
.f-group {
    margin-bottom: 22px;
    position: relative;
}

.f-group label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-bottom: 8px;
    transition: color var(--ease);
}

.f-group:focus-within label {
    color: var(--gold);
}

.f-input-wrap {
    position: relative;
}

.f-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 300;
    padding: 10px 40px 10px 0;
    background: transparent;
    color: var(--charcoal);
    letter-spacing: 0.02em;
    transition: border-color var(--ease);
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.f-group input::placeholder {
    color: var(--light-grey);
}

.f-group input:focus {
    border-bottom-color: var(--gold);
}

.f-group input.error {
    border-bottom-color: var(--error);
}

.f-group input.success {
    border-bottom-color: var(--success);
}

.pw-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: var(--light-grey);
    cursor: pointer;
    padding: 4px;
    transition: color var(--ease);
}

.pw-toggle:hover {
    color: var(--mid-grey);
}

.f-error {
    display: none;
    font-size: 11px;
    color: var(--error);
    letter-spacing: 0.04em;
    margin-top: 6px;
}

.f-group.has-error .f-error {
    display: block;
}

.f-group.has-error input {
    border-bottom-color: var(--error);
}

/* Password strength meter */
.pw-strength {
    margin-top: 8px;
    display: none;
}

.pw-strength.visible {
    display: block;
}

.pw-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
}

.pw-bar {
    height: 2px;
    flex: 1;
    background: var(--light-grey);
    border-radius: 1px;
    transition: background .3s;
}

.pw-bar.weak {
    background: var(--error);
}

.pw-bar.fair {
    background: #e67e22;
}

.pw-bar.good {
    background: #f1c40f;
}

.pw-bar.strong {
    background: var(--success);
}

.pw-label {
    font-size: 10px;
    color: var(--mid-grey);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Checkbox */
.f-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 6px;
}

.f-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 0;
    margin-top: 1px;
    transition: all var(--ease);
    position: relative;
}

.f-check input[type="checkbox"]:checked {
    background: var(--charcoal);
    border-color: var(--charcoal);
}

.f-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.f-check span {
    font-size: 12px;
    color: var(--mid-grey);
    line-height: 1.6;
}

.f-check span a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Submit Button ── */
.btn-submit {
    width: 100%;
    background: var(--charcoal);
    color: #fff;
    border: 1px solid var(--charcoal);
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 15px 32px;
    cursor: pointer;
    transition: all var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.btn-submit .btn-arrow {
    transition: transform var(--ease);
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Divider ── */
.form-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--light-grey);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Social Sign In ── */
.social-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: var(--fb);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--charcoal);
    cursor: pointer;
    transition: all var(--ease);
}

.btn-social:hover {
    border-color: var(--charcoal);
    background: var(--cream);
}

/* ── Form Footer Links ── */
.form-links {
    margin-top: 24px;
    text-align: center;
}

.form-links p {
    font-size: 12px;
    color: var(--mid-grey);
    line-height: 1.8;
}

.form-links a {
    color: var(--charcoal);
    font-weight: 500;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: border-color var(--ease), color var(--ease);
    cursor: pointer;
}

.form-links a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ── Auth Success State ── */
.success-state {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(39, 115, 74, 0.08);
    border: 1px solid rgba(39, 115, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--success);
    margin: 0 auto 20px;
}

.success-title {
    font-family: var(--fd);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.success-title em {
    color: var(--gold);
    font-style: italic;
}

.success-body {
    font-size: 13px;
    color: var(--mid-grey);
    line-height: 1.8;
    margin-bottom: 24px;
}

.success-email {
    font-weight: 600;
    color: var(--charcoal);
}

/* ── Page Crumb Indicator ── */
.page-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--mid-grey);
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.page-crumb a {
    transition: color var(--ease);
    cursor: pointer;
}

.page-crumb a:hover {
    color: var(--gold);
}

.page-crumb i {
    font-size: 9px;
}

.page-crumb span {
    color: var(--charcoal);
}

/* ── Benefits List ── */
.benefits {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--mid-grey);
    line-height: 1.6;
    margin-bottom: 10px;
}

.benefits li i {
    color: var(--gold);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Auth Modal ── */
.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-backdrop.open {
    display: flex;
}

.auth-modal {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 26px 24px 22px;
    position: relative;
    text-align: center;
}

.auth-modal-close {
    border: none;
    background: none;
    color: var(--mid-grey);
    font-size: 14px;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

.auth-modal-close:hover {
    color: var(--charcoal);
}

.auth-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(44, 111, 173, 0.12);
    color: #2c6fad;
}

.auth-modal-icon.warning {
    background: rgba(192, 57, 43, 0.14);
    color: var(--error);
}

.auth-modal h3 {
    font-family: var(--fd);
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 8px;
    color: var(--charcoal);
}

.auth-modal p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--mid-grey);
    margin: 0;
}

.auth-modal-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-modal-btn {
    border: 1px solid var(--charcoal);
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--fb);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ease);
}

.auth-modal-btn.primary {
    background: var(--charcoal);
    color: var(--white);
}

.auth-modal-btn.primary:hover {
    background: #000;
    border-color: #000;
}

.auth-modal-btn.ghost {
    background: transparent;
    color: var(--charcoal);
}

.auth-modal-btn.ghost:hover {
    background: var(--light-grey);
}
