/* ============================================================
   Auth Pages — SumitJhaDigital Business ERP
   Modern split-screen authentication design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
    --auth-bg-gradient: linear-gradient(135deg, #09152b 0%, #0f2b5c 50%, #1d4ed8 100%);
    --card-shadow:       0 20px 45px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --input-bg:          #f8fafc;
    --input-border:      #e2e8f0;
    --input-focus-border:#3b82f6;
    --input-focus-glow:  0 0 0 4px rgba(59, 130, 246, 0.12);
}

body.auth-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
    color: #1e293b;
}

/* ─── Wrapper ─────────────────────────────────────────────── */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ─── Left Brand Panel ────────────────────────────────────── */
.auth-brand {
    flex: 0 0 44%;
    background: var(--auth-bg-gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 50px 40px;
}

/* Canvas Particles — Contained strictly inside left blue brand panel */
#authParticlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.brand-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 440px;
    width: 100%;
}

/* Brand Header Logo Box */
.brand-logo-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.auth-logo-box {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.auth-logo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.auth-logo-img {
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* ISO Badge */
.iso-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-size: 12px; font-weight: 600; color: #93c5fd;
    margin-bottom: 20px;
}

/* Title & Description */
.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 30px; font-weight: 800; color: #fff;
    line-height: 1.25; margin-bottom: 12px;
}
.brand-desc {
    color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.6;
    margin-bottom: 28px;
}

/* Features List */
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.feature-item {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 12px 16px; border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
    border-color: rgba(96, 165, 250, 0.35);
}
.fi-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(99,102,241,0.25));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #60a5fa; flex-shrink: 0;
}
.feature-item strong { display: block; color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.feature-item span { font-size: 11px; color: rgba(255, 255, 255, 0.6); line-height: 1.4; }

/* Stats Line */
.brand-stats {
    display: flex; gap: 24px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-family:'Outfit',sans-serif; font-size: 20px; font-weight: 800; color: #60a5fa; }
.stat span { font-size: 10px; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

/* Ambient Glow Orbs */
.glow-orb-1 {
    position: absolute; width: 400px; height: 400px;
    border-radius: 50%; background: rgba(59, 130, 246, 0.14);
    filter: blur(80px); top: -80px; right: -80px; pointer-events: none;
}
.glow-orb-2 {
    position: absolute; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(99, 102, 241, 0.14);
    filter: blur(80px); bottom: -60px; left: -60px; pointer-events: none;
}

/* ─── Right Content Panel ─────────────────────────────────── */
.auth-content {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 24px;
    background: #f8fafc;
    position: relative;
    min-height: 100vh;
}

.auth-nav-top {
    width: 100%; max-width: 480px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}

.auth-card {
    width: 100%; max-width: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    padding: 36px 32px;
}

/* Form Controls */
.input-group-text {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: #64748b;
    font-size: 14px;
}

.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-glow);
}

.btn-primary-auth {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    padding: 13px 20px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
}

.btn-primary-auth:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* Quick Demo Pills */
.demo-pill-btn {
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.demo-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Responsiveness */
@media (max-width: 992px) {
    .auth-brand { display: none; }
    .auth-content { padding: 24px 16px; }
    .auth-card { padding: 28px 20px; }
}
