/* =========================================================
   GHANA FUGU — Auth Page Styles
   ========================================================= */

:root {
    --bg:           #FAF8F5;
    --bg-card:      #FFFFFF;
    --surface:      #F2EFEA;
    --border:       #E0DBD3;
    --border-light: #EBE7E1;
    --gold:         #9E7A38;
    --gold-light:   #B8923F;
    --gold-dark:    #7A5E2A;
    --gold-muted:   rgba(158, 122, 56, 0.1);
    --text:         #1A1611;
    --text-muted:   #6B6358;
    --text-dim:     #9A9189;
    --white:        #FFFFFF;
    --danger:       #EF4444;
    --success:      #22C55E;
    --warning:      #F59E0B;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, sans-serif;
    --font-accent:  'Cormorant Garamond', Georgia, serif;
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--white); }

/* ======================== LAYOUT ======================== */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ======================== BRAND PANEL ======================== */
.auth-brand {
    position: relative;
    background: #1A1611;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px;
}

.brand-pattern {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(158, 122, 56, 0.06) 10px, rgba(158, 122, 56, 0.06) 12px),
        repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(122, 94, 42, 0.04) 15px, rgba(122, 94, 42, 0.04) 17px),
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(158, 122, 56, 0.03) 20px, rgba(158, 122, 56, 0.03) 22px);
    animation: drift 25s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(15px, 15px); }
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 40% 40%, rgba(158, 122, 56, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(122, 94, 42, 0.08) 0%, transparent 50%);
}

.brand-content {
    position: relative;
    z-index: 2;
    color: #F2EDE4;
    max-width: 420px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(158, 122, 56, 0.6);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: #C9A84C;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    font-weight: 500;
}

.brand-message h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 18px;
}

.brand-message p {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    color: rgba(242, 237, 228, 0.6);
    line-height: 1.7;
    max-width: 360px;
}

.brand-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.bstat { text-align: center; }

.bstat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: #C9A84C;
}

.bstat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 237, 228, 0.4);
}

.bstat-sep {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.08);
}

/* ======================== FORMS PANEL ======================== */
.auth-forms {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

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

/* Tabs */
.auth-tabs {
    display: flex;
    position: relative;
    background: var(--surface);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 36px;
}

.auth-tab {
    flex: 1;
    padding: 11px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

.auth-tab.active {
    color: var(--text);
}

.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.35s var(--ease-out);
    z-index: 1;
}

.auth-tabs .auth-tab:nth-child(2).active ~ .tab-indicator {
    transform: translateX(100%);
}

/* Forms */
.auth-form {
    display: none;
    animation: fadeUp 0.4s var(--ease-out);
}

.auth-form.active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-muted);
}

.input-wrap svg {
    color: var(--text-dim);
    flex-shrink: 0;
}

.input-wrap input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
}

.input-wrap input::placeholder {
    color: var(--text-dim);
}

.toggle-pw {
    color: var(--text-dim);
    padding: 4px;
    transition: color 0.2s;
}

.toggle-pw:hover { color: var(--text); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 20px;
}

.checkbox-label input {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

.link-sm {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 500;
    transition: color 0.2s;
}

.link-sm:hover { color: var(--gold-dark); }

/* Password strength */
.pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pw-strength.visible { opacity: 1; }

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

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

.pw-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 50px;
}

.pw-weak .pw-fill   { width: 33%; background: var(--danger); }
.pw-weak .pw-label   { color: var(--danger); }
.pw-medium .pw-fill  { width: 66%; background: var(--warning); }
.pw-medium .pw-label  { color: var(--warning); }
.pw-strong .pw-fill  { width: 100%; background: var(--success); }
.pw-strong .pw-label  { color: var(--success); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 4px 16px rgba(158, 122, 56, 0.3);
}

.btn-full { width: 100%; }

/* Error */
.form-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--danger);
    display: none;
}

.form-error.visible {
    display: block;
    animation: fadeUp 0.3s var(--ease-out);
}

/* Alt text */
.auth-alt {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.switch-tab {
    color: var(--gold);
    font-weight: 500;
}

.switch-tab:hover { color: var(--gold-dark); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-forms {
        padding: 40px 20px;
    }

    .auth-forms-inner {
        max-width: 480px;
    }

    .auth-forms::before {
        content: '';
        display: block;
    }
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
