/* ═══════════════════════════════════════════════════════════════
   ACBIZ GLOBAL — Auth Pages Stylesheet v2.0
   ═══════════════════════════════════════════════════════════════ */

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

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

:root {
    --blue:        #1d4ed8;
    --blue-light:  #3b82f6;
    --blue-dark:   #1e3a8a;
    --accent:      #06b6d4;
    --dark:        #0a0e1a;
    --dark-2:      #111827;
    --dark-3:      #1f2937;
    --border:      rgba(255,255,255,0.09);
    --border-l:    #e2e8f0;
    --white:       #ffffff;
    --text-muted:  rgba(255,255,255,0.45);
    --radius:      12px;
    --font-head:   'Syne', sans-serif;
    --font-body:   'DM Sans', sans-serif;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── Shell ──────────────────────────────────────────────────── */
.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── Left Panel ─────────────────────────────────────────────── */
.auth-panel-left {
    position: relative;
    background: linear-gradient(155deg, #0d1635 0%, #0a0e1a 60%, #060c1a 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background effects */
.apl-bg { position: absolute; inset: 0; }
.apl-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 100% 80% at 20% 40%, black 20%, transparent 80%);
}
.apl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.apl-orb-1 { width: 500px; height: 500px; background: rgba(29,78,216,0.2); top: -150px; left: -100px; }
.apl-orb-2 { width: 350px; height: 350px; background: rgba(6,182,212,0.1); bottom: 50px; right: -80px; }
.apl-orb-3 { width: 250px; height: 250px; background: rgba(124,58,237,0.12); bottom: 200px; left: 100px; }

.apl-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 48px 56px;
    gap: 0;
}

/* Brand */
.apl-brand { display: flex; align-items: center; gap: 14px; margin-bottom: auto; padding-bottom: 48px; }
.apl-brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--blue), var(--accent));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(29,78,216,0.35);
}
.apl-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.apl-brand-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 15px;
    color: var(--white);
    letter-spacing: -0.2px;
}
.apl-brand-sub {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Headline */
.apl-headline {
    margin-bottom: 48px;
}
.apl-headline h1 {
    font-family: var(--font-head);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--white);
}
.apl-highlight {
    background: linear-gradient(135deg, #60a5fa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.apl-headline p {
    font-size: 15.5px;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    max-width: 380px;
}

/* Features */
.apl-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}
.apl-feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.apl-feat-icon {
    width: 40px; height: 40px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: var(--blue-light);
    flex-shrink: 0;
}
.apl-feat div { display: flex; flex-direction: column; gap: 2px; }
.apl-feat strong { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.85); }
.apl-feat span { font-size: 12.5px; color: rgba(255,255,255,0.38); line-height: 1.5; }

/* Stats */
.apl-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.apl-stat { text-align: center; }
.apl-stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}
.apl-stat span { font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.5px; }
.apl-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }

/* ── Right Panel ─────────────────────────────────────────────── */
.auth-panel-right {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}
.apr-inner {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.apr-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.apr-mobile-brand .apl-brand-icon { background: linear-gradient(135deg, var(--blue), var(--accent)); }
.apr-mobile-brand .apl-brand-name { color: #0a0e1a; }

.apr-back {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #94a3b8;
}
.apr-back a { color: #64748b; transition: color .2s; }
.apr-back a:hover { color: var(--blue); }
.apr-back i { margin-right: 6px; }

/* ── Form Wrap ──────────────────────────────────────────────── */
.auth-form-wrap {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 40px 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e8edf3;
}

/* Form Header */
.afh { text-align: center; margin-bottom: 32px; }
.afh-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(29,78,216,0.1), rgba(6,182,212,0.08));
    border: 1px solid rgba(29,78,216,0.15);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: var(--blue);
    margin: 0 auto 18px;
}
.afh-icon-reg { background: linear-gradient(135deg, rgba(5,150,105,0.1), rgba(16,185,129,0.06)); border-color: rgba(5,150,105,0.15); color: #059669; }
.afh h2 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.afh p { font-size: 14px; color: #64748b; }

/* Groups */
.af-group { margin-bottom: 18px; }
.af-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
    letter-spacing: 0.1px;
}
.af-optional { font-weight: 400; color: #94a3b8; font-size: 12px; }
.af-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.af-label-row label { margin-bottom: 0; }
.af-forgot { font-size: 12.5px; color: var(--blue); font-weight: 500; transition: color .2s; }
.af-forgot:hover { color: #1e3a8a; }

/* Input Wrap */
.af-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.af-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color .2s;
    z-index: 1;
}
.af-input-wrap input,
.af-select-wrap select {
    width: 100%;
    padding: 11px 44px 11px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-family: var(--font-body);
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
}
.af-input-wrap input:focus,
.af-select-wrap select:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.af-input-wrap input:focus ~ .af-input-icon,
.af-input-wrap:focus-within .af-input-icon { color: var(--blue); }

.af-input-wrap input::placeholder { color: #cbd5e1; }

/* Password toggle */
.af-toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    padding: 0;
    transition: color .2s;
    display: flex; align-items: center;
}
.af-toggle-pw:hover { color: #475569; }

/* Password match indicator */
.af-pw-match {
    position: absolute;
    right: 14px;
    color: #22c55e;
    font-size: 14px;
}

/* Select wrap */
.af-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.af-select-wrap select { padding-right: 40px; cursor: pointer; }
.af-select-arrow {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 11px;
    pointer-events: none;
}

/* Two-column row */
.af-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Remember me / Terms checkbox */
.af-remember { margin-bottom: 20px; }
.af-terms { margin-bottom: 20px; }
.af-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
}
.af-check-label input[type="checkbox"] { display: none; }
.af-checkmark {
    width: 18px; height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #f8fafc;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.af-check-label input:checked + .af-checkmark {
    background: var(--blue);
    border-color: var(--blue);
}
.af-check-label input:checked + .af-checkmark::after {
    content: '';
    display: block;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.af-check-label a { color: var(--blue); font-weight: 500; }
.af-check-label a:hover { text-decoration: underline; }

/* Password strength */
.pw-strength { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.pw-bar { flex: 1; height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.pw-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; width: 0; }
.pw-label { font-size: 11px; font-weight: 600; white-space: nowrap; }
.pw-weak   .pw-fill { width: 30%; background: #ef4444; }
.pw-weak   .pw-label { color: #ef4444; }
.pw-fair   .pw-fill { width: 55%; background: #f59e0b; }
.pw-fair   .pw-label { color: #f59e0b; }
.pw-good   .pw-fill { width: 80%; background: #3b82f6; }
.pw-good   .pw-label { color: #3b82f6; }
.pw-strong .pw-fill { width: 100%; background: #22c55e; }
.pw-strong .pw-label { color: #22c55e; }

/* Submit */
.af-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--blue), #2563eb);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 20px rgba(29,78,216,0.3);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 20px;
}
.af-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.af-submit:active { transform: translateY(0); }
.af-submit-reg { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 20px rgba(5,150,105,0.3); }

/* Divider */
.af-divider {
    text-align: center;
    position: relative;
    margin: 4px 0 16px;
}
.af-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: #e2e8f0;
}
.af-divider span {
    position: relative;
    background: #fff;
    padding: 0 14px;
    font-size: 12.5px;
    color: #94a3b8;
}

/* Social buttons */
.af-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.af-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius);
    background: #f8fafc;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.af-social-btn:hover { border-color: #cbd5e1; background: #fff; }

/* Trust badges */
.af-trust {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.af-trust span {
    display: flex; align-items: center; gap: 5px;
    font-size: 11.5px;
    color: #94a3b8;
}
.af-trust i { color: #22c55e; font-size: 11px; }

/* Switch link */
.af-switch {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 20px;
}
.af-switch a { color: var(--blue); font-weight: 600; transition: color .2s; }
.af-switch a:hover { color: #1e3a8a; }
.af-switch i { font-size: 11px; margin-left: 2px; }

/* Flash messages inside right panel */
.flash-msg {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13.5px;
    margin-bottom: 16px;
    display: flex; align-items: flex-start; gap: 10px;
    line-height: 1.5;
}
.flash-msg.flash-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-msg.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-msg.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-msg.flash-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-panel-left { display: none; }
    .auth-panel-right { min-height: 100vh; background: #f1f5f9; }
    .apr-mobile-brand { display: flex; }
    .auth-form-wrap { padding: 32px 28px 24px; }
}

@media (max-width: 480px) {
    .auth-panel-right { padding: 24px 16px; }
    .auth-form-wrap { padding: 28px 20px 20px; border-radius: 16px; }
    .af-row-2 { grid-template-columns: 1fr; }
    .af-socials { grid-template-columns: 1fr; }
}
