/* =============================================================
   Coreza — Login Page Styles  (Obsidian Command theme)
   Loaded by: public/login.php
   ============================================================= */

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

:root {
    --c-dark:         #060C18;
    --c-dark-2:       #0C1526;
    --c-dark-3:       #131F35;
    --c-dark-border:  rgba(255,255,255,0.07);
    --c-accent:       #5563E8;
    --c-accent-dim:   #4451D8;
    --c-accent-light: #8B96F8;
    --c-cyan:         #0EA5E9;
    --c-off-white:    #F7F9FC;
    --c-border:       #E2E8F2;
    --c-text:         #0A1628;
    --c-muted:        #64748B;
    --c-error:        #EF4444;
    --font:           'Outfit', sans-serif;
    --r:              10px;
}

html, body { height: 100%; font-family: var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }

/* ─── Layout ─────────────────────────────── */
.auth-split { display: flex; height: 100vh; width: 100%; }

/* ─── Left Dark Panel ─────────────────────── */
.auth-left {
    width: 44%; background: var(--c-dark);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; padding: 36px 40px; flex-shrink: 0;
}
.auth-left::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(85,99,232,0.22) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: orbFloat 9s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(85,99,232,0.3), transparent 70%); top: -100px; right: -60px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(14,165,233,0.2), transparent 70%); bottom: 40px; left: -80px; animation-delay: -4.5s; }
@keyframes orbFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-22px) scale(1.04)} }

.left-logo { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; animation: riseIn .6s ease both; }
.left-logo-mark { width: 36px; height: 36px; background: var(--c-accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(85,99,232,0.5); }
.left-logo-mark svg { fill: white; width: 20px; height: 20px; }
.left-logo-name { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -.3px; }

.left-body { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }

.left-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(85,99,232,0.13); border: 1px solid rgba(85,99,232,0.28);
    color: var(--c-accent-light); font-size: .72rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 20px; width: fit-content;
    animation: riseIn .6s .1s ease both;
}
.left-badge::before { content: ''; width: 6px; height: 6px; background: var(--c-accent-light); border-radius: 50%; }

.left-h { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.14; letter-spacing: -.035em; margin-bottom: 14px; animation: riseIn .6s .15s ease both; }
.left-h span { background: linear-gradient(130deg, #8B96F8 20%, #38BDF8 80%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.left-sub { font-size: .9rem; color: rgba(255,255,255,0.42); line-height: 1.7; margin-bottom: 32px; max-width: 330px; animation: riseIn .6s .2s ease both; }

.left-features { display: flex; flex-direction: column; gap: 11px; animation: riseIn .6s .25s ease both; }
.feat { display: flex; align-items: center; gap: 12px; }
.feat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; box-shadow: 0 0 8px rgba(85,99,232,0.6); }
.feat span { font-size: .875rem; color: rgba(255,255,255,0.55); font-weight: 500; }

.left-quote { position: relative; z-index: 2; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 20px; animation: riseIn .6s .35s ease both; }
.stars { display: flex; gap: 3px; margin-bottom: 10px; }
.stars svg { width: 13px; height: 13px; fill: #FBBF24; }
.quote-text { font-size: .85rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 14px; font-style: italic; }
.quote-author { display: flex; align-items: center; gap: 10px; }
.q-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--c-accent),var(--c-cyan)); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.q-name { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,0.88); }
.q-title { font-size: .73rem; color: rgba(255,255,255,0.38); }

/* ─── Right Form Panel ────────────────────── */
.auth-right {
    flex: 1; background: var(--c-off-white);
    display: flex; align-items: center; justify-content: center;
    overflow-y: auto; padding: 40px 32px; position: relative;
}
.auth-right::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 85% 8%, rgba(85,99,232,0.05) 0%, transparent 48%),
                radial-gradient(circle at 8% 92%, rgba(14,165,233,0.04) 0%, transparent 48%);
}

.form-wrap { width: 100%; max-width: 416px; position: relative; z-index: 1; animation: riseIn .5s .08s ease both; }

.fw-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; }
.fw-logo-mark { width: 30px; height: 30px; background: var(--c-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.fw-logo-mark svg { fill: white; width: 17px; height: 17px; }
.fw-logo-name { font-size: 1.05rem; font-weight: 700; color: var(--c-text); letter-spacing: -.2px; }

.fw-h { font-size: 1.6rem; font-weight: 800; color: var(--c-text); letter-spacing: -.035em; margin-bottom: 5px; }
.fw-sub { font-size: .875rem; color: var(--c-muted); margin-bottom: 26px; }

.btn-google {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 16px; background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--r);
    font-family: var(--font); font-size: .9375rem; font-weight: 600; color: var(--c-text);
    cursor: pointer; transition: all .15s; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.btn-google:hover { border-color: #C5CEE0; background: #FAFBFF; box-shadow: 0 3px 10px rgba(0,0,0,.07); }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--c-muted); font-size: .8rem; }
.divider::before,.divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }

.fgrp { margin-bottom: 17px; }
.flabel {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: 6px;
}
.flabel a { color: var(--c-accent); font-weight: 500; font-size: .8rem; text-decoration: none; }
.flabel a:hover { text-decoration: underline; }

.iw { position: relative; }
.finput {
    width: 100%; padding: 11px 14px; font-family: var(--font); font-size: .9375rem;
    color: var(--c-text); background: #fff; border: 1.5px solid var(--c-border);
    border-radius: var(--r); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none;
}
.finput::placeholder { color: #B0BCCE; }
.finput:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3.5px rgba(85,99,232,0.11); }

.pw-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #B0BCCE;
    display: flex; align-items: center; transition: color .15s; padding: 4px;
}
.pw-eye:hover { color: var(--c-muted); }

.btn-go {
    width: 100%; padding: 12px 16px; background: var(--c-accent); color: #fff;
    border: none; border-radius: var(--r); font-family: var(--font); font-size: .9375rem;
    font-weight: 700; cursor: pointer; transition: all .15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 3px 12px rgba(85,99,232,0.32); letter-spacing: -.01em; margin-top: 6px;
}
.btn-go:hover { background: var(--c-accent-dim); box-shadow: 0 5px 18px rgba(85,99,232,0.42); transform: translateY(-1px); }
.btn-go:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(85,99,232,0.28); }
.btn-go:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.fw-footer { text-align: center; margin-top: 22px; font-size: .875rem; color: var(--c-muted); }
.fw-footer a { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.fw-footer a:hover { text-decoration: underline; }

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

/* ── Tablet: hide left panel ─────────────────────────────────────────── */
@media (max-width: 860px) {
    .auth-left  { display: none; }
    .auth-right { padding: 40px 24px; }
    html, body  { overflow: auto; }
    .form-wrap  { max-width: 480px; }
}

/* ── Phone (≤ 600px) ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    html, body { overflow: auto; height: auto; }
    .auth-split { flex-direction: column; min-height: 100vh; height: auto; }
    .auth-right {
        flex: 1; padding: 32px 20px 48px;
        align-items: flex-start;
        min-height: 100vh;
    }
    .form-wrap { max-width: 100%; }
    .fw-logo   { margin-bottom: 24px; }
    .fw-h      { font-size: 1.4rem; }
    .fw-sub    { font-size: .84rem; margin-bottom: 20px; }
    .finput    { font-size: .9rem; padding: 10px 12px; }
    .btn-go    { font-size: .9rem; padding: 11px 14px; }
    .btn-google { font-size: .875rem; padding: 10px 14px; }
    .fw-footer { margin-top: 18px; font-size: .82rem; }

    /* Sent / Success states — ensure column layout on mobile */
    .sent-state,
    .success-state {
        padding: 8px 0 !important;
        width: 100% !important;
    }
    .sent-title,
    .success-title { font-size: 1.2rem !important; }
    .sent-sub,
    .success-sub   { font-size: .82rem !important; }
    .sent-email-pill { font-size: .8rem !important; }

    /* Password strength bars */
    .pw-bar { width: 36px !important; }
    .pw-bars { gap: 3px !important; }

    /* Requirement list */
    .req-list { gap: 4px !important; }
    .req-item { font-size: .76rem !important; }
}

/* ── Tiny phone (≤ 380px) ─────────────────────────────────────────── */
@media (max-width: 380px) {
    .auth-right { padding: 24px 14px 40px; }
    .fw-h       { font-size: 1.25rem; }
    .pw-bar     { width: 28px !important; }
}

/* ─── SweetAlert2 — Coreza Theme ────────────────────────────── */
.coreza-popup {
    font-family: 'Outfit', sans-serif !important;
    border-radius: 18px !important; padding: 36px 32px !important;
    border: 1px solid #E2E8F2 !important;
    box-shadow: 0 24px 64px rgba(10,22,40,0.13) !important;
}
.coreza-toast {
    font-family: 'Outfit', sans-serif !important;
    border-radius: 10px !important; padding: 13px 18px !important;
    box-shadow: 0 8px 28px rgba(10,22,40,0.12) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}
.coreza-swal-title {
    font-size: 1.2rem !important; font-weight: 800 !important;
    color: #0A1628 !important; letter-spacing: -.025em !important;
    padding: 0 !important; margin-bottom: 6px !important;
}
.coreza-swal-body {
    font-size: .875rem !important; color: #64748B !important;
    line-height: 1.6 !important; margin: 0 !important; padding: 0 !important;
}
.coreza-btn-confirm {
    font-family: 'Outfit', sans-serif !important; font-weight: 700 !important;
    font-size: .9375rem !important; padding: 10px 28px !important;
    border-radius: 9px !important; background: #5563E8 !important;
    box-shadow: 0 3px 12px rgba(85,99,232,0.32) !important;
    border: none !important; transition: all .15s !important;
}
.coreza-btn-confirm:hover { background: #4451D8 !important; box-shadow: 0 5px 18px rgba(85,99,232,0.42) !important; }
.coreza-btn-cancel {
    font-family: 'Outfit', sans-serif !important; font-weight: 600 !important;
    font-size: .9375rem !important; padding: 10px 28px !important;
    border-radius: 9px !important; background: #F1F5F9 !important;
    color: #475569 !important; border: 1.5px solid #E2E8F2 !important;
}
.coreza-progress { background: #5563E8 !important; }
.swal2-icon.swal2-success { border-color: #10B981 !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'] { background: #10B981 !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(16,185,129,0.25) !important; }
.swal2-icon.swal2-error { border-color: #EF4444 !important; }
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background: #EF4444 !important; }
.swal2-icon.swal2-warning { border-color: #F59E0B !important; color: #F59E0B !important; }
.swal2-loader { border-color: #5563E8 transparent #5563E8 transparent !important; }
