/* ================================================================
   auth.css — RekapSEO Auth Pages
   Premium SaaS — clean, modern, confident
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&family=DM+Serif+Display:ital@0;1&display=swap');

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

:root {
    /* Brand */
    --ink:           #0C0C10;
    --ink-mid:       #16161E;
    --ink-subtle:    #1E1E28;
    --accent:        #4F6EF7;
    --accent-dim:    rgba(79,110,247,.14);
    --accent-glow:   rgba(79,110,247,.28);
    --teal:          #00C4A7;
    --teal-dim:      rgba(0,196,167,.12);
    --gold:          #E8C87A;
    --gold-dim:      rgba(232,200,122,.1);

    /* Form side */
    --bg:            #F7F7F9;
    --surface:       #FFFFFF;
    --border:        #E8E8EE;
    --border-focus:  #4F6EF7;
    --text:          #0C0C10;
    --text-2:        #52525B;
    --text-3:        #A1A1AA;
    --placeholder:   #B4B4BC;
    --error:         #E53E3E;
    --error-bg:      #FFF5F5;
    --error-border:  #FEB2B2;
    --success:       #0D9488;
    --success-bg:    #F0FDFA;
    --success-border:#99F6E4;
    --warning-bg:    #FFFBEB;
    --warning-border:#FDE68A;
    --warning-text:  #92400E;
    --info-bg:       #EFF6FF;
    --info-border:   #BFDBFE;
    --info-text:     #1E40AF;

    --radius:        12px;
    --radius-sm:     8px;
    --radius-xs:     6px;
    --shadow:        0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --shadow-md:     0 4px 24px rgba(0,0,0,.08), 0 1px 6px rgba(0,0,0,.04);
    --transition:    .18s cubic-bezier(.4,0,.2,1);
    --font:          'DM Sans', sans-serif;
    --font-display:  'DM Serif Display', serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #3a57d4; }

/* ─── SHELL ─────────────────────────────────────────────── */
.auth-shell {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 100vh;
}
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand  { display: none; }
}

/* ─── BRAND PANEL ───────────────────────────────────────── */
.auth-brand {
    background: var(--ink);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2.5rem;
}

/* Layered ambient glow */
.auth-brand::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,110,247,.18) 0%, transparent 70%);
    top: -120px; left: -140px;
    pointer-events: none;
}
.auth-brand::after {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,196,167,.12) 0%, transparent 70%);
    bottom: 60px; right: -80px;
    pointer-events: none;
}

/* Fine dot grid */
.auth-brand-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.brand-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand-icon {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.brand-wordmark {
    font-family: var(--font);
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255,255,255,.92);
    letter-spacing: -.01em;
}

.brand-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-bottom: .5rem;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(79,110,247,.15);
    border: 1px solid rgba(79,110,247,.25);
    border-radius: 99px;
    padding: .25rem .7rem;
    font-size: .68rem;
    font-weight: 500;
    color: #8BA4FA;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.brand-eyebrow-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4F6EF7;
    box-shadow: 0 0 6px rgba(79,110,247,.8);
}

.brand-headline {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1.18;
    color: rgba(255,255,255,.95);
    margin-bottom: .9rem;
    letter-spacing: -.01em;
    font-weight: 400;
}

.brand-headline em {
    font-style: italic;
    color: var(--gold);
}

.brand-tagline {
    font-size: .8rem;
    color: rgba(255,255,255,.4);
    line-height: 1.7;
    max-width: 280px;
    font-weight: 300;
}

.brand-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .77rem;
    color: rgba(255,255,255,.5);
    font-weight: 400;
}

.brand-feature-icon {
    width: 26px; height: 26px;
    border-radius: var(--radius-xs);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,.45);
}

/* Stats strip */
.brand-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.brand-stat-val {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: rgba(255,255,255,.88);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: .2rem;
}

.brand-stat-label {
    font-size: .65rem;
    color: rgba(255,255,255,.35);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.3;
}

.brand-bottom {
    position: relative;
    z-index: 2;
    margin-top: 1.75rem;
    font-size: .68rem;
    color: rgba(255,255,255,.25);
}

/* ─── FORM PANEL ────────────────────────────────────────── */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bg);
    min-height: 100vh;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
    animation: fadeUp .35s cubic-bezier(.4,0,.2,1) both;
}

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

/* Mobile brand */
.auth-mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .auth-mobile-brand { display: block; } }

.auth-mobile-wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: -.01em;
}

/* ─── HEADING ───────────────────────────────────────────── */
.auth-heading { margin-bottom: 1.75rem; }

.auth-heading h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: .35rem;
}

.auth-heading p {
    font-size: .82rem;
    color: var(--text-2);
    font-weight: 400;
}

/* ─── CARD WRAPPER ──────────────────────────────────────── */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

/* ─── FORM FIELDS ───────────────────────────────────────── */
.field { margin-bottom: .9rem; }
.field:last-child { margin-bottom: 0; }

.field label {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: .35rem;
    letter-spacing: .005em;
}

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

.field input {
    width: 100%;
    padding: .65rem .85rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .875rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
}

.field input::placeholder { color: var(--placeholder); }

.field input:focus {
    border-color: var(--border-focus);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.field input.has-toggle { padding-right: 2.6rem; }

.field-hint { font-size: .71rem; color: var(--text-3); margin-top: .28rem; }

/* Password toggle */
.pw-toggle {
    position: absolute;
    right: .75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: var(--text-3);
    padding: .2rem; display: flex;
    transition: color var(--transition);
}
.pw-toggle:hover { color: var(--text-2); }

/* Field link row (label + forgot) */
.field-link-row {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: .35rem;
}
.field-link-row label { margin-bottom: 0; }
.field-link-row a { font-size: .73rem; color: var(--text-3); }
.field-link-row a:hover { color: var(--text); }

/* Two-col field row */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* Phone prefix */
.input-prefix-wrap { display: flex; }
.input-prefix {
    display: inline-flex; align-items: center;
    padding: 0 .7rem;
    background: var(--border);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: .875rem; color: var(--text-2);
    user-select: none; white-space: nowrap;
}
.input-prefix-wrap input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ─── ALERTS ────────────────────────────────────────────── */
.auth-alert {
    display: flex; align-items: flex-start;
    gap: .55rem; padding: .7rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .79rem; line-height: 1.5;
    margin-bottom: 1.1rem; border: 1px solid;
    animation: fadeUp .22s ease both;
}
.auth-alert svg { flex-shrink: 0; margin-top: .06rem; }
.auth-alert.error   { background: var(--error-bg);   color: #9B1C1C; border-color: var(--error-border); }
.auth-alert.success { background: var(--success-bg); color: #065F46; border-color: var(--success-border); }
.auth-alert.info    { background: var(--info-bg);    color: var(--info-text);    border-color: var(--info-border); }
.auth-alert.warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-border); }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
    width: 100%; padding: .7rem 1.25rem;
    background: var(--accent);
    color: #fff; border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .875rem; font-weight: 500;
    cursor: pointer; letter-spacing: .005em;
    display: flex; align-items: center;
    justify-content: center; gap: .45rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 1px 3px rgba(79,110,247,.3), 0 4px 12px rgba(79,110,247,.18);
}
.btn-primary:hover {
    background: #3a57d4; color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79,110,247,.35), 0 6px 20px rgba(79,110,247,.22);
}
.btn-primary:active { transform: translateY(0); }

.btn-google {
    width: 100%; padding: .68rem 1.25rem;
    background: var(--surface);
    color: var(--text); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .875rem; font-weight: 400;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    gap: .55rem; text-decoration: none;
    transition: all var(--transition);
}
.btn-google:hover {
    border-color: #C4C4C8; color: var(--text);
    background: var(--bg);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transform: translateY(-1px);
}

/* ─── DIVIDER ───────────────────────────────────────────── */
.auth-divider {
    display: flex; align-items: center;
    gap: .7rem; margin: 1rem 0;
    color: var(--text-3); font-size: .73rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── FOOTER / LINKS ────────────────────────────────────── */
.auth-footer {
    text-align: center;
    font-size: .78rem; color: var(--text-2);
}
.auth-footer a { color: var(--text); font-weight: 500; }
.auth-footer a:hover { color: var(--accent); }

.auth-terms {
    font-size: .7rem; color: var(--text-3);
    text-align: center; margin-top: .8rem; line-height: 1.6;
}
.auth-terms a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* ─── PASSWORD STRENGTH ─────────────────────────────────── */
.pw-strength { margin-top: .35rem; }
.pw-strength-bar {
    height: 2.5px; border-radius: 99px;
    background: var(--border); overflow: hidden; margin-bottom: .25rem;
}
.pw-strength-fill {
    height: 100%; border-radius: 99px;
    transition: width .3s ease, background .3s ease; width: 0%;
}
.pw-strength-label { font-size: .68rem; color: var(--text-3); }

/* ─── SUCCESS STATE ICON ────────────────────────────────── */
.auth-success-icon {
    width: 52px; height: 52px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.1rem;
}

.auth-error-icon {
    width: 52px; height: 52px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.1rem;
}

/* ─── SUSPENDED PAGE ────────────────────────────────────── */
.suspended-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
}

.suspended-status-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .8rem;
    border-radius: 99px;
    font-size: .7rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.suspended-status-badge.expired   { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.suspended-status-badge.suspended { background: var(--error-bg); color: #9B1C1C; border: 1px solid var(--error-border); }

.suspended-title {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 400;
    letter-spacing: -.01em; color: var(--text);
    margin-bottom: .5rem; line-height: 1.25;
}
.suspended-desc {
    font-size: .82rem; color: var(--text-2);
    line-height: 1.65; max-width: 300px;
    margin: 0 auto 1.75rem;
}

.suspended-actions {
    display: flex; gap: .65rem;
    justify-content: center; flex-wrap: wrap;
}
.suspended-actions .btn-primary { max-width: 200px; }
.suspended-actions .btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .4rem; padding: .68rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-2); font-family: var(--font);
    font-size: .875rem; font-weight: 400;
    text-decoration: none;
    transition: all var(--transition); cursor: pointer;
}
.suspended-actions .btn-outline:hover {
    border-color: #C4C4C8; color: var(--text);
    background: var(--bg);
}

.suspended-help {
    font-size: .75rem; color: var(--text-3);
    margin-top: 1.25rem; line-height: 1.6;
}
.suspended-help a { color: var(--text-2); font-weight: 500; }
