:root {
    --navy: #0a1628;
    --navy-mid: #112240;
    --navy-light: #1a365d;
    --gold: #f59e0b;
    --gold-dark: #d97706;
    --gold-light: #fcd34d;
    --gold-glow: rgba(245, 158, 11, 0.35);
    --cream: #faf9f7;
    --cream-warm: #f5f3ef;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e8e4df;
    --glass: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.95);
    --shadow: 0 32px 64px -16px rgba(10, 22, 40, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    --shadow-lg: 0 40px 80px -20px rgba(10, 22, 40, 0.22);
}

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

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-title {
    font-family: 'Sora', 'Segoe UI', sans-serif;
}

.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ===== Full-screen Banner Background ===== */
.banner-panel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--navy);
    isolation: isolate;
}

.banner-carousel {
    position: absolute;
    inset: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-parallax-layer {
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.2s ease-out;
}

.banner-parallax-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    animation: kenBurns 14s ease-in-out infinite alternate;
}

.banner-slide.active .banner-parallax-layer img {
    animation-play-state: running;
}

.banner-slide:not(.active) .banner-parallax-layer img {
    animation-play-state: paused;
}

@keyframes kenBurns {
    0% { transform: scale(1.08) translate(0, 0); }
    100% { transform: scale(1.18) translate(-1.5%, -1%); }
}

.banner-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 48%, rgba(10, 22, 40, 0.62) 0%, transparent 72%),
        radial-gradient(ellipse 85% 55% at 50% 100%, rgba(10, 22, 40, 0.88) 0%, transparent 70%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, rgba(10, 22, 40, 0.2) 40%, rgba(10, 22, 40, 0.75) 100%);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    pointer-events: none;
}

.banner-content {
    max-width: 580px;
    animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(12px);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 28px 6px rgba(245, 158, 11, 0.12); }
}

.banner-content h1 {
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.banner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.banner-stat {
    flex: 1 1 110px;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    animation: fadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.banner-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.35);
}

.banner-stat:nth-child(2) { animation-delay: 0.12s; }
.banner-stat:nth-child(3) { animation-delay: 0.24s; }

.banner-stat strong {
    display: block;
    color: var(--gold-light);
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
}

.banner-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    margin-top: 0.15rem;
    display: block;
}

.banner-controls {
    position: absolute;
    bottom: 1.75rem;
    left: clamp(1.5rem, 4vw, 3.5rem);
    right: clamp(1.5rem, 4vw, 3.5rem);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.banner-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.banner-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    border-radius: 999px;
    transition: width 0.1s linear;
}

.banner-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.banner-dot.active {
    width: 32px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.banner-shapes {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.banner-shapes .shape {
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatShape 20s ease-in-out infinite;
}

.banner-shapes .shape-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 10%;
    right: 6%;
}

.banner-shapes .shape-2 {
    width: 140px;
    height: 140px;
    top: 38%;
    left: 4%;
    animation-delay: -5s;
}

.banner-shapes .shape-3 {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    bottom: 25%;
    right: 20%;
    animation-delay: -10s;
    transform: rotate(45deg);
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
    50% { transform: translateY(-30px) rotate(15deg); opacity: 0.5; }
}

/* ===== Centered Login Overlay ===== */
.login-panel {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: transparent;
    overflow: hidden;
}

/* Aurora wave overlay */
.panel-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(125deg, transparent 20%, rgba(245, 158, 11, 0.14) 42%, rgba(252, 211, 77, 0.08) 50%, transparent 65%),
        linear-gradient(235deg, transparent 30%, rgba(10, 22, 40, 0.08) 50%, transparent 72%);
    background-size: 220% 220%;
    animation: auroraShift 10s ease-in-out infinite;
    opacity: 1;
}

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

/* Perspective dot grid */
.panel-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.55) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.25) 25%, rgba(0,0,0,0.55) 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.25) 25%, rgba(0,0,0,0.55) 65%, transparent 100%);
    animation: gridPulse 6s ease-in-out infinite;
    transform: perspective(500px) rotateX(58deg) scale(2.4);
    transform-origin: center 85%;
    opacity: 0.75;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.55; }
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: meshFloat 18s ease-in-out infinite;
}

.mesh-blob-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.55) 0%, rgba(245, 158, 11, 0.15) 45%, transparent 70%);
    top: -18%;
    right: -12%;
    opacity: 0.95;
    animation-delay: 0s;
}

.mesh-blob-2 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(10, 22, 40, 0.22) 0%, transparent 68%);
    bottom: 0%;
    left: -15%;
    opacity: 0.85;
    animation-delay: -6s;
}

.mesh-blob-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.42) 0%, transparent 68%);
    top: 32%;
    left: 20%;
    opacity: 0.9;
    animation-delay: -12s;
}

.mesh-blob-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.4) 0%, transparent 68%);
    bottom: 20%;
    right: 10%;
    opacity: 0.85;
    animation-delay: -3s;
}

.mesh-blob-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(10, 22, 40, 0.15) 0%, rgba(245, 158, 11, 0.25) 40%, transparent 70%);
    top: 50%;
    right: -8%;
    opacity: 0.8;
    animation-delay: -8s;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(28px, -32px) scale(1.08); }
    66% { transform: translate(-22px, 20px) scale(0.94); }
}

/* 3D floating decorative scene */
.panel-3d-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    perspective: 900px;
    transform-style: preserve-3d;
    overflow: hidden;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.float-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(245, 158, 11, 0.45) 40%, rgba(217, 119, 6, 0.15) 100%);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.25), inset -4px -4px 12px rgba(10, 22, 40, 0.08);
    animation: orbFloat3d 14s ease-in-out infinite;
}

.float-orb-1 {
    width: 72px;
    height: 72px;
    top: 10%;
    left: 6%;
    animation-delay: 0s;
    opacity: 0.9;
}

.float-orb-2 {
    width: 48px;
    height: 48px;
    top: 26%;
    right: 8%;
    animation-delay: -4s;
    opacity: 0.85;
}

.float-orb-3 {
    width: 32px;
    height: 32px;
    bottom: 20%;
    left: 12%;
    animation-delay: -8s;
    opacity: 0.8;
}

@keyframes orbFloat3d {
    0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translate3d(12px, -20px, 30px) rotateX(15deg) rotateY(-10deg); }
    50% { transform: translate3d(-8px, -35px, 15px) rotateX(-8deg) rotateY(18deg); }
    75% { transform: translate3d(15px, -15px, 40px) rotateX(10deg) rotateY(-15deg); }
}

.float-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.35);
    animation: ringSpin3d 20s linear infinite;
    transform-style: preserve-3d;
}

.float-ring-1 {
    width: 120px;
    height: 120px;
    top: 18%;
    right: 6%;
    border-color: rgba(245, 158, 11, 0.3);
    animation-duration: 22s;
}

.float-ring-2 {
    width: 80px;
    height: 80px;
    bottom: 18%;
    right: 18%;
    border-color: rgba(10, 22, 40, 0.12);
    animation-duration: 16s;
    animation-direction: reverse;
}

@keyframes ringSpin3d {
    0% { transform: rotateX(65deg) rotateZ(0deg); }
    100% { transform: rotateX(65deg) rotateZ(360deg); }
}

.float-cube {
    position: absolute;
    width: 32px;
    height: 32px;
    transform-style: preserve-3d;
    animation: cubeTumble 18s ease-in-out infinite;
}

.float-cube-1 { top: 20%; left: 20%; animation-delay: 0s; }
.float-cube-2 { bottom: 30%; right: 8%; width: 24px; height: 24px; animation-delay: -6s; opacity: 0.7; }

.float-cube span {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.float-cube span:nth-child(1) { transform: rotateY(0deg) translateZ(16px); }
.float-cube span:nth-child(2) { transform: rotateY(90deg) translateZ(16px); }
.float-cube span:nth-child(3) { transform: rotateY(180deg) translateZ(16px); }
.float-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(16px); }
.float-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(16px); }
.float-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(16px); }

.float-cube-2 span:nth-child(1) { transform: rotateY(0deg) translateZ(12px); }
.float-cube-2 span:nth-child(2) { transform: rotateY(90deg) translateZ(12px); }
.float-cube-2 span:nth-child(3) { transform: rotateY(180deg) translateZ(12px); }
.float-cube-2 span:nth-child(4) { transform: rotateY(-90deg) translateZ(12px); }
.float-cube-2 span:nth-child(5) { transform: rotateX(90deg) translateZ(12px); }
.float-cube-2 span:nth-child(6) { transform: rotateX(-90deg) translateZ(12px); }

@keyframes cubeTumble {
    0%, 100% { transform: rotateX(-20deg) rotateY(0deg) translateY(0); }
    50% { transform: rotateX(25deg) rotateY(180deg) translateY(-25px); }
}

.float-diamond {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(252, 211, 77, 0.3));
    transform: rotate(45deg);
    animation: diamondFloat 10s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.float-diamond-1 { top: 45%; left: 5%; animation-delay: -2s; }
.float-diamond-2 { top: 65%; right: 12%; width: 14px; height: 14px; animation-delay: -5s; opacity: 0.65; }

@keyframes diamondFloat {
    0%, 100% { transform: rotate(45deg) translateY(0) scale(1); opacity: 0.7; }
    50% { transform: rotate(45deg) translateY(-30px) scale(1.2); opacity: 1; }
}

.panel-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleDrift linear infinite;
}

.particle-gold {
    background: radial-gradient(circle, rgba(252, 211, 77, 0.9) 0%, rgba(245, 158, 11, 0.4) 100%);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.particle-navy {
    background: radial-gradient(circle, rgba(10, 22, 40, 0.25) 0%, transparent 100%);
}

.particle-ring {
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: transparent;
    border-radius: 50%;
    animation: particleRingDrift linear infinite;
}

@keyframes particleDrift {
    0% { transform: translateY(105vh) translateX(0) scale(0); opacity: 0; }
    8% { opacity: 0.85; }
    92% { opacity: 0.5; }
    100% { transform: translateY(-8vh) translateX(20px) scale(1); opacity: 0; }
}

@keyframes particleRingDrift {
    0% { transform: translateY(105vh) rotate(0deg) scale(0.5); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translateY(-8vh) rotate(180deg) scale(1); opacity: 0; }
}

/* Sweeping light beam */
.panel-light-beam {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 42%,
        rgba(255, 255, 255, 0.06) 48%,
        rgba(245, 158, 11, 0.16) 50%,
        rgba(255, 255, 255, 0.06) 52%,
        transparent 58%
    );
    animation: lightSweep 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes lightSweep {
    0%, 100% { transform: translateX(-30%) rotate(0deg); }
    50% { transform: translateX(30%) rotate(0deg); }
}

.login-panel-inner {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-style: preserve-3d;
    transition: transform 0.18s ease-out;
    will-change: transform;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.login-card {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow:
        0 28px 60px rgba(10, 22, 40, 0.28),
        0 8px 24px rgba(10, 22, 40, 0.12);
    overflow: hidden;
}

.login-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    animation: accentShimmer 4s ease-in-out infinite;
    z-index: 5;
}

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

.login-header {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #1a2f4d 100%);
    padding: 1.5rem 1.75rem 1.35rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
                radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 55%);
    animation: rotate 30s linear infinite;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}

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

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 16px 2px rgba(245, 158, 11, 0.15); }
}

.mascot-container {
    margin: 0 0 0.65rem;
    position: relative;
    z-index: 2;
    animation: mascotFloat 4s ease-in-out infinite;
}

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

.mascot {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.mascot-face {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #f4f4f4 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 -4px 12px rgba(0, 0, 0, 0.04);
    border: 3px solid rgba(245, 158, 11, 0.25);
}

.mascot-face::before,
.mascot-face::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 36px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50% 50% 0 0;
    top: -11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mascot-face::before { left: 11px; transform: rotate(-15deg); }
.mascot-face::after { right: 11px; transform: rotate(15deg); }

.mascot-eyes {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 22px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.eye {
    width: 22px;
    height: 26px;
    background: white;
    border-radius: 50% 50% 45% 45%;
    border: 2.5px solid #2c3e50;
    position: relative;
    overflow: hidden;
}

.pupil {
    width: 11px;
    height: 11px;
    background: radial-gradient(circle at 30% 30%, #34495e 0%, #1a252f 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out;
}

.pupil::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.mascot-eyes::before,
.mascot-eyes::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    top: -9px;
}

.mascot-eyes::before { left: -3px; transform: rotate(-10deg); }
.mascot-eyes::after { right: -3px; transform: rotate(10deg); }

.mascot-face .nose {
    position: absolute;
    width: 13px;
    height: 9px;
    background: #e74c3c;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    bottom: 42%;
    left: 50%;
    transform: translateX(-50%);
}

.mascot-face .mouth {
    position: absolute;
    width: 34px;
    height: 16px;
    border: 2.5px solid #2c3e50;
    border-top: none;
    border-radius: 0 0 34px 34px;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.mascot-face .mouth.smile {
    height: 20px;
    border-radius: 0 0 40px 40px;
}

.mascot-hands {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(18px) scale(0.85);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10;
}

.mascot-hands.covering {
    opacity: 1;
    top: 41%;
    transform: translateY(0) scale(1);
}

.hand { font-size: 28px; }
.left-hand { transform: rotate(-15deg); }
.right-hand { transform: rotate(15deg); }

.mascot-eyes.closed .eye {
    height: 4px;
    border-radius: 50%;
    transform: scaleY(0.15);
}

.mascot-eyes.closed .pupil { opacity: 0; }

.login-header h2 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.login-header p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    position: relative;
    z-index: 2;
}

.login-body {
    padding: 1.65rem 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
}

.login-body > * {
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-body > *:nth-child(1) { animation-delay: 0.08s; }
.login-body > *:nth-child(2) { animation-delay: 0.14s; }
.login-body > *:nth-child(3) { animation-delay: 0.2s; }
.login-body > *:nth-child(4) { animation-delay: 0.26s; }
.login-body > *:nth-child(5) { animation-delay: 0.32s; }

.alert {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    animation: slideIn 0.35s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border-left: 4px solid #22c55e;
}

.alert-info {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid var(--gold);
}

/* Google Sign-In */
.google-signin-wrap {
    margin-bottom: 0;
    width: 100%;
}

.google-signin-stack {
    position: relative;
    width: 100%;
    min-height: 50px;
}

.google-signin-stack .btn-google {
    width: 100%;
    pointer-events: none;
}

.google-signin-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    opacity: 0.01;
    cursor: pointer;
}

.google-signin-overlay > div {
    width: 100% !important;
    height: 100% !important;
}

.google-signin-overlay iframe {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px;
    margin: 0 !important;
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-google {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.35rem 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.84rem;
}

.form-label i {
    margin-right: 0.35rem;
    color: var(--gold-dark);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.94rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-dark);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), 0 4px 20px rgba(245, 158, 11, 0.15);
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--gold-dark);
}

.btn {
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(10, 22, 40, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 22, 40, 0.35);
}

.btn-primary:hover::after {
    transform: translateX(120%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.88;
}

.btn-primary.loading .btn-text { opacity: 0; }

.btn-primary .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.btn-primary.loading .spinner { display: block; }

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

.btn-secondary {
    background: var(--cream-warm);
    color: #475569;
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: #ebe8e3;
    border-color: #d6d0c8;
}

.w-100 { width: 100%; }
.btn-lg { padding: 1rem 1.25rem; }
.mt-3 { margin-top: 1rem; }
.text-center { text-align: center; }

.login-footer {
    background: linear-gradient(to bottom, rgba(248, 246, 242, 0.9), rgba(245, 243, 239, 0.95));
    padding: 1rem 1.75rem 1.15rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-security {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem !important;
}

.footer-security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-dark);
    font-size: 0.65rem;
}

.login-footer p {
    color: var(--muted);
    font-size: 0.76rem;
    margin: 0.2rem 0;
}

small {
    color: var(--muted);
    font-size: 0.76rem;
    display: block;
    margin-top: 0.45rem;
}

.otp-input-group {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.otp-input {
    width: 44px;
    height: 50px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.25s ease;
    font-family: 'Sora', sans-serif;
}

.otp-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
    transform: scale(1.06);
}

.otp-input:not(:placeholder-shown) {
    border-color: #10b981;
    background: #f0fdf4;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.back-home:hover {
    color: #fff;
    transform: translateX(-3px);
}

@media (max-width: 1024px) {
    .banner-overlay {
        padding: 1.5rem;
    }

    .banner-stats {
        display: none;
    }

    .banner-controls {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.25rem;
    }

    .banner-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .banner-content p {
        display: none;
    }

    .panel-3d-scene .float-cube,
    .panel-3d-scene .float-ring {
        display: none;
    }

    .panel-grid,
    .gradient-mesh {
        opacity: 0.45;
    }
}

@media (max-width: 768px) {
    .banner-overlay {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 22px;
    }

    .login-body,
    .login-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .otp-input {
        width: 38px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
