/* ============================================================
   Velzia — AI Kitchen Assistant Login
   Dark mode · orange/gold ambient · robot chef hero
   ============================================================ */

:root {
    --primary: #f97316;
    --primary-hover: #ea6c0a;
    --primary-soft: rgba(249, 115, 22, 0.15);
    --primary-glow: rgba(249, 115, 22, 0.35);
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.25);
    --ink: #f5f0eb;
    --ink-dim: rgba(245, 240, 235, 0.65);
    --muted: #9a9088;
    --bg-app: #111111;
    --card-bg: rgba(28, 24, 20, 0.85);
    --card-border: rgba(249, 115, 22, 0.15);
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--ink);
    background-color: var(--bg-app);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Ambient light field ---------- */
.auth-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    opacity: 0.55;
    animation: orbFloat 16s ease-in-out infinite;
}

.auth-orb--1 {
    width: 32rem;
    height: 32rem;
    top: -8rem;
    left: 15%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.6), transparent 70%);
}

.auth-orb--2 {
    width: 24rem;
    height: 24rem;
    bottom: -6rem;
    right: 10%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 70%);
    animation-delay: -6s;
}

.auth-orb--3 {
    width: 18rem;
    height: 18rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(234, 88, 12, 0.3), transparent 70%);
    animation-delay: -11s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(-32px) translateX(20px) scale(1.07);
    }
}

/* ---------- Layout ---------- */
.auth-split-screen {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* ---------- Left: hero with robot chef ---------- */
.auth-hero {
    display: none;
    flex: 1;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .auth-hero {
        display: flex;
    }
}

/* SVG light trails */
.auth-light-trails {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-trail {
    fill: none;
    stroke-linecap: round;
    animation: trailPulse 4s ease-in-out infinite;
}

.auth-trail--1 {
    stroke: url(#trailGrad1);
    stroke-width: 2.5;
    animation-delay: 0s;
}

.auth-trail--2 {
    stroke: url(#trailGrad2);
    stroke-width: 1.8;
    animation-delay: -1.5s;
}

.auth-trail--3 {
    stroke: url(#trailGrad1);
    stroke-width: 1.2;
    animation-delay: -2.8s;
    opacity: 0.6;
}

@keyframes trailPulse {

    0%,
    100% {
        opacity: 0.5;
        filter: blur(0.5px);
    }

    50% {
        opacity: 1;
        filter: blur(0px) drop-shadow(0 0 8px rgba(249, 115, 22, 0.9));
    }
}

/* Robot image */
.auth-hero-robot {
    position: relative;
    z-index: 2;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: robotFloat 6s ease-in-out infinite;
}

.auth-hero-robot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.5)) drop-shadow(0 0 80px rgba(251, 191, 36, 0.2));
}

@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

/* ---------- Right: login panel ---------- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .auth-form-panel {
        flex: 0 0 46%;
        max-width: 46%;
    }
}

/* ---------- Dark glassmorphism card ---------- */
.auth-card {
    width: 100%;
    max-width: 26rem;
    border-radius: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 32px 80px -24px rgba(0, 0, 0, 0.8),
        0 0 60px -20px rgba(249, 115, 22, 0.25);
    padding: 2.4rem 2.2rem 1.6rem;
}

.auth-card-content {
    width: 100%;
}

/* Mobile icon */
.auth-card-icon {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    box-shadow: 0 10px 24px -8px rgba(249, 115, 22, 0.7);
}

.auth-card-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.35rem;
}

.auth-card-title em {
    font-style: normal;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card-sub {
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---------- Card footer ---------- */
.auth-card-footer {
    margin-top: 1.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--muted);
}

.auth-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---------- Links ---------- */
.auth-link-soft {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-link-soft:hover {
    color: var(--primary);
}

.auth-brand-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: var(--primary);
    flex-shrink: 0;
    transition: background 0.25s ease;
}

/* ---------- Spinner (orange) ---------- */
.auth-spinner {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    border: 3px solid rgba(249, 115, 22, 0.3);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Flash messages dark override ---------- */
.flash-message {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}