/* ============================================================
   Good Steps – Auth Split-Screen (login / signup / reset / otp)
   ============================================================ */

:root {
    --primary:        #1a6b35;
    --primary-dark:   #155a2b;
    --primary-light:  #e8f5ee;
    --secondary:      #2e7a46;
    --accent:         #4ade80;
    --danger:         #ef4444;
    --border:         #e5e7eb;
    --dark:           #0f172a;
    --muted:          #6b7280;
    --primary-color:  #1a6b35;       /* legacy alias */
}

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

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    background: #f9fafb;
    color: var(--dark);
    min-height: 100vh;
}

/* ──────────────────────────────────────────
   AUTH SHELL – two-pane split layout
─────────────────────────────────────────── */
.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* LEFT – brand panel */
.auth-brand {
    position: relative;
    background:
        radial-gradient(circle at 20% 10%, rgba(74,222,128,0.25), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46,122,70,0.5), transparent 50%),
        linear-gradient(135deg, #155a2b 0%, #1a6b35 45%, #2e7a46 100%);
    color: #fff;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.04) 1.5px, transparent 1.5px);
    background-size: 60px 60px, 90px 90px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
}

/* decorative footstep emoji floating */
.auth-brand::after {
    content: '👣 👣 👣';
    position: absolute;
    bottom: -10px;
    right: -20px;
    font-size: 60px;
    letter-spacing: 16px;
    opacity: 0.08;
    transform: rotate(-15deg);
    pointer-events: none;
}

.brand-top {
    display: flex; align-items: center;
    position: relative; z-index: 2;
    margin-bottom: 36px;
}
.brand-top img { height: 60px; width: auto; background: #fff; padding: 6px 10px; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.25); }

.brand-headline {
    position: relative; z-index: 2;
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 460px;
}

.brand-tagline {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    width: fit-content;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}
.brand-tagline i { color: #fde047; font-size: 11px; }

.brand-headline h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.brand-headline h1 .accent { color: #fde047; }

.brand-headline p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: 26px;
}

.brand-features {
    list-style: none;
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 28px;
}
.brand-features li {
    display: flex; align-items: center; gap: 11px;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.95);
}
.brand-features .tick {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(74,222,128,0.25);
    border: 1.5px solid #4ade80;
    display: flex; align-items: center; justify-content: center;
    color: #4ade80; font-size: 10px;
    flex-shrink: 0;
}

.brand-stats {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.brand-stat-num { font-size: 1.4rem; font-weight: 800; color: #fff; }
.brand-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* RIGHT – form panel */
.auth-form-side {
    background: #fff;
    padding: 48px 52px;
    display: flex; flex-direction: column;
    overflow-y: auto;
}

.form-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 56px;
}
.form-top-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--primary); }
.form-top-brand img { height: 32px; width: auto; }
.form-top-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.form-top-link a { color: var(--primary); font-weight: 600; text-decoration: none; margin-left: 4px; }
.form-top-link a:hover { text-decoration: underline; }

.form-wrap {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 410px;
    width: 100%;
    margin: 0 auto;
}

.form-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}
.form-subtitle {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.55;
}

/* form fields */
.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.field .control {
    position: relative;
}

.field input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 11px 14px 11px 40px;
    font-size: 13.5px;
    color: var(--dark);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.field input::placeholder { color: #9ca3af; }
.field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,107,53,0.12);
}

.field .ico {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}
.field input:focus + .ico, .field:focus-within .ico { color: var(--primary); }

.field .toggle-pwd {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #9ca3af; cursor: pointer;
    font-size: 14px;
    padding: 2px;
}
.field .toggle-pwd:hover { color: var(--primary); }

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* CTA button */
.btn-cta {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s;
    margin-top: 6px;
    box-shadow: 0 2px 10px rgba(26,107,53,0.2);
}
.btn-cta:hover { background: var(--primary-dark); }
.btn-cta:active { transform: translateY(1px); }

/* Helper row (forgot pwd) */
.form-helper {
    display: flex; align-items: center; justify-content: space-between;
    margin: -6px 0 16px;
    font-size: 12.5px;
}
.form-helper a { color: var(--primary); font-weight: 600; text-decoration: none; }
.form-helper a:hover { text-decoration: underline; }
.checkbox-row { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.checkbox-row input { width: 14px; height: 14px; accent-color: var(--primary); margin: 0; }

/* divider */
.form-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0;
    color: #9ca3af; font-size: 12px;
}
.form-divider::before,
.form-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* footer text */
.form-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 24px;
}
.form-bottom a { color: var(--primary); font-weight: 600; text-decoration: none; }
.form-bottom a:hover { text-decoration: underline; }

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); font-size: 13px; text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
}
.back-link:hover { color: var(--primary); }

/* ──────────────────────────────────────────
   Mobile responsive – stack vertically
─────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand {
        padding: 32px 28px;
        min-height: auto;
    }
    .brand-headline h1 { font-size: 1.7rem; }
    .brand-headline p { font-size: 14px; margin-bottom: 18px; }
    .brand-features { margin-bottom: 18px; }
    .brand-features li { font-size: 13px; }
    .brand-stats { gap: 10px; padding-top: 14px; }
    .brand-stat-num { font-size: 1.1rem; }
    .auth-form-side { padding: 32px 24px; min-height: 60vh; }
    .form-top { margin-bottom: 30px; }
}

@media (max-width: 500px) {
    .field-row { flex-direction: column; gap: 0; }
}
