/* ========================================
   Nigella SaaS ERP — Auth Layout
   Calm enterprise branding + form pane
   ======================================== */

:root {
    --auth-ink: #0b1524;
    --auth-ink-mid: #132338;
    --auth-accent: #2f6fed;
    --auth-accent-soft: #5aa7c7;
    --auth-mist: rgba(232, 240, 252, 0.88);
    --auth-white: #ffffff;
    --auth-surface: #f7f8fb;
    --auth-text: #1a2332;
    --auth-muted: #6b778c;
}

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

.auth-body {
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    background: var(--auth-surface);
    height: 100vh;
    width: 100vw;
}

.auth-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ========================================
   LEFT BRAND PANEL
   ======================================== */

.auth-branding-section {
    flex: 1.05;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(155deg, #0b1524 0%, #14304a 48%, #0e1d33 100%);
    color: var(--auth-white);
}

.premium-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    will-change: transform;
}

.aurora-a {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(47, 111, 237, 0.55) 0%, transparent 70%);
    animation: auroraDriftA 18s ease-in-out infinite;
}

.aurora-b {
    width: 380px;
    height: 380px;
    right: -100px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(90, 167, 199, 0.45) 0%, transparent 70%);
    animation: auroraDriftB 22s ease-in-out infinite;
}

.aurora-c {
    width: 260px;
    height: 260px;
    left: 35%;
    top: 42%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: auroraDriftC 16s ease-in-out infinite;
}

.brand-sheen {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.04) 42%, transparent 58%);
    background-size: 220% 100%;
    animation: sheenSweep 12s ease-in-out infinite;
}

@keyframes auroraDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 28px) scale(1.08); }
}

@keyframes auroraDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-36px, -24px) scale(1.1); }
}

@keyframes auroraDriftC {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(20px, -30px); opacity: 0.65; }
}

@keyframes sheenSweep {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: brandEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes brandEnter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-logo-premium {
    width: 72px;
    height: 72px;
}

.logo-icon-premium {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoSoftFloat 7s ease-in-out infinite;
}

.brand-logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@keyframes logoSoftFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.brand-text-premium {
    text-align: left;
}

.brand-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232, 240, 252, 0.72);
}

.brand-name-premium {
    margin: 0 0 12px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(42px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
}

.brand-tagline-premium {
    margin: 0;
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    color: var(--auth-mist);
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.feature-premium {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    animation: featureEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--delay, 0.2s);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.feature-premium:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

@keyframes featureEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-icon-premium {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d7e7ff;
    background: rgba(47, 111, 237, 0.22);
    border: 1px solid rgba(90, 167, 199, 0.28);
}

.feature-icon-premium svg {
    width: 18px;
    height: 18px;
}

.feature-content-premium h3 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.feature-content-premium p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(232, 240, 252, 0.72);
}

/* ========================================
   RIGHT FORM PANEL
   ======================================== */

.auth-form-section {
    flex: 0.95;
    background: var(--auth-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-form-section::before {
    content: '';
    position: absolute;
    inset: auto -20% -30% auto;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(47, 111, 237, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-branding-section {
        flex: none;
        min-height: 34vh;
        padding: 28px 24px;
    }

    .brand-content {
        gap: 16px;
        max-width: 560px;
    }

    .brand-name-premium {
        font-size: 36px;
    }

    .brand-tagline-premium {
        font-size: 14px;
        max-width: none;
    }

    .premium-features {
        display: none;
    }

    .auth-form-section {
        flex: 1;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .auth-branding-section {
        min-height: 30vh;
        padding: 22px 18px;
    }

    .brand-logo-premium,
    .logo-icon-premium {
        width: 58px;
        height: 58px;
    }

    .brand-logo-image {
        width: 38px;
        height: 38px;
    }

    .brand-name-premium {
        font-size: 30px;
    }

    .auth-form-section {
        padding: 18px;
    }
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] .auth-body {
    background: #0b1220;
}

[data-theme="dark"] .auth-form-section {
    background: #121a2a;
}

[data-theme="dark"] .auth-form-section::before {
    background: radial-gradient(circle, rgba(90, 167, 199, 0.1) 0%, transparent 70%);
}
