/* ============================
   KONE MONEY — Auth Page
   css/auth.css
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --primary:      #7C6EFF;
    --primary-glow: rgba(124,110,255,0.3);
    --primary-dim:  rgba(124,110,255,0.12);
    --accent:       #A78BFA;
    --accent2:      #00AAFF;
    --bg:           #070B14;
    --bg-app:       #080D17;
    --surface:      rgba(255,255,255,0.04);
    --surface-2:    rgba(255,255,255,0.07);
    --border:       rgba(255,255,255,0.08);
    --border-bright:rgba(255,255,255,0.14);
    --text:         #EDF2F7;
    --text-muted:   #64748B;
    --success:      #00D4AA;
    --error:        #FF4560;
    --radius:       18px;
    --radius-sm:    13px;
    --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Background ─────────────────────────── */
.bg-blobs {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: 0.09;
    animation: blobFloat 14s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: var(--primary); top: -120px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: #E040FB; bottom: -80px; right: -80px; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; background: var(--accent2); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -9s; }
@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%  { transform: translate(25px,-18px) scale(1.04); }
    66%  { transform: translate(-18px,14px) scale(0.97); }
}

/* ── Layout ──────────────────────────────── */
.split-container {
    display: flex; width: 100%; height: 100%;
    position: relative; z-index: 1;
}

/* ── Showcase (Desktop only) ─────────────── */
.showcase-side {
    display: none; flex: 1.25;
    position: relative; overflow: hidden; background: #000;
}
.showcase-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.showcase-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(135deg, rgba(7,11,20,0.92) 15%, rgba(124,110,255,0.08) 60%, rgba(0,212,170,0.06) 100%);
}
.showcase-content {
    position: absolute; inset: 0; z-index: 3;
    display: flex; flex-direction: column; justify-content: center;
    padding: 64px; max-width: 680px;
}
.showcase-badge {
    align-self: flex-start; padding: 6px 16px;
    background: rgba(124,110,255,0.12);
    border: 1px solid rgba(124,110,255,0.25);
    border-radius: 999px; font-size: 12px; font-weight: 700;
    color: #A78BFA; margin-bottom: 24px; letter-spacing: 0.3px;
}
.showcase-title {
    font-size: 46px; font-weight: 900;
    line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 40%, var(--accent2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.showcase-text {
    font-size: 16px; color: var(--text-muted); line-height: 1.65; margin-bottom: 44px;
}
.showcase-features { display: flex; flex-direction: column; gap: 20px; }
.feat { display: flex; align-items: flex-start; gap: 16px; }
.feat-icon {
    font-size: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-bright);
    border-radius: 14px; width: 50px; height: 50px;
    display: grid; place-items: center; flex-shrink: 0;
}
.feat h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feat p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Form Side ───────────────────────────── */
.form-side {
    flex: 1; display: grid; place-items: center;
    overflow-y: auto; padding: 32px 20px;
    position: relative;
    background: rgba(7,11,20,0.5);
    backdrop-filter: blur(12px);
}

/* ── Mobile Banner ───────────────────────── */
.mobile-header-image {
    display: block; width: 100%; height: 130px;
    border-radius: var(--radius-sm); overflow: hidden;
    margin-bottom: 24px; border: 1px solid var(--border-bright);
}
.mobile-header-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Auth Shell ──────────────────────────── */
.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 390px; }

/* ── Brand ───────────────────────────────── */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand-icon {
    width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center;
    box-shadow: 0 0 24px var(--primary-glow), 0 0 0 1px rgba(124,110,255,0.2);
}
.brand-name {
    font-size: 24px; font-weight: 900; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Tabs ────────────────────────────────── */
.tab-bar {
    position: relative; display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-bright);
    border-radius: 999px; padding: 4px; width: 100%;
    margin-bottom: 28px;
}
.tab-indicator {
    position: absolute; top: 4px; bottom: 4px;
    width: calc(50% - 4px); left: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 999px;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 16px var(--primary-glow);
}
.tab {
    flex: 1; padding: 10px 0; border: none;
    background: transparent; color: var(--text-muted);
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
    cursor: pointer; border-radius: 999px;
    position: relative; z-index: 1; transition: color 0.2s;
}
.tab.active { color: #fff; }

/* ── Form Panel ──────────────────────────── */
.form-panel { display: none; width: 100%; flex-direction: column; gap: 0; animation: fadeUp 0.3s ease forwards; }
.form-panel.active { display: flex; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.form-subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

/* ── Alerts ──────────────────────────────── */
.alert {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; margin-bottom: 16px;
}
.alert-error   { background: rgba(255,69,96,0.1);  color: var(--error);   border: 1px solid rgba(255,69,96,0.2);  }
.alert-success { background: rgba(0,212,170,0.1);  color: var(--success); border: 1px solid rgba(0,212,170,0.2); }

/* ── Form Controls ───────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.input-group {
    position: relative; display: flex; align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--border-bright);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.input-group.focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.input-icon { padding: 0 12px; color: var(--text-muted); display: grid; place-items: center; flex-shrink: 0; }
.input-group input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); font-family: 'Inter', sans-serif;
    font-size: 14px; padding: 14px 4px 14px 0; width: 100%;
}
.input-group input::placeholder { color: var(--text-muted); }
.toggle-pw {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 0 12px; display: grid; place-items: center;
    transition: color var(--transition);
}
.toggle-pw:hover { color: var(--text); }

/* ── Primary Button ──────────────────────── */
.btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
    cursor: pointer; margin-top: 6px;
    box-shadow: 0 6px 28px var(--primary-glow);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    letter-spacing: 0.2px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px var(--primary-glow); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }

.switch-hint { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.switch-hint a { color: var(--primary); text-decoration: none; font-weight: 600; }
.switch-hint a:hover { text-decoration: underline; }

/* ── Desktop ─────────────────────────────── */
@media (min-width: 768px) {
    .showcase-side { display: block; }
    .mobile-header-image { display: none; }
    .form-side { padding: 60px; background: transparent; backdrop-filter: none; }
}
@media (max-width: 380px) {
    .input-row { grid-template-columns: 1fr; }
}
