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

:root {
    --auth-bg: var(--background, #f8fafc);
    --auth-card-bg: var(--card-bg, #ffffff);
    --auth-primary: var(--primary, #0a2ca2);
    --auth-primary-dark: var(--primary-dark, #081d6d);
    --auth-primary-light: var(--primary-light, #eef2ff);
    --auth-text: var(--text-main, #000000);
    --auth-text-muted: var(--text-secondary, #475569);
    --auth-input-bg: var(--surface-alt, #f1f5f9);
    --auth-input-border: var(--border, #e2e8f0);
    --auth-radius: 16px;
    --auth-shadow: var(--shadow-md, 0 10px 25px rgba(0, 0, 0, 0.05));
}

/* Dark Mode Overrides - Only applied via data-theme or class */
[data-theme="dark"], body.dark {
    --auth-bg: #0f172a;
    --auth-card-bg: #1e293b;
    --auth-text: #ffffff;
    --auth-text-muted: #94a3b8;
    --auth-input-bg: #334155;
    --auth-input-border: #475569;
}

/* Explicit contrast for dark mode */
[data-theme="dark"] .auth-card, body.dark .auth-card {
    background: var(--auth-card-bg) !important;
    color: var(--auth-text) !important;
}

[data-theme="dark"] .form-input, body.dark .form-input {
    background: var(--auth-input-bg) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .form-input::placeholder, body.dark .form-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

body.auth-layout {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    transition: all 0.5s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    background: var(--auth-card-bg);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
}

/* Height-based Scaling (Laptops / Small Screens) */
@media (max-height: 850px) {
    .auth-card { padding: 2.25rem 2rem; }
    .auth-header { margin-bottom: 1.75rem; }
    .mascot-container { transform: scale(0.85); margin-bottom: -15px; }
}

@media (max-height: 720px) {
    body.auth-layout { padding: 1rem; }
    .auth-card { padding: 1.5rem 1.75rem; border-radius: 20px; }
    .auth-header { margin-bottom: 1.25rem; }
    .auth-header h2 { font-size: 1.5rem; }
    .mascot-container { transform: scale(0.7); margin-bottom: -25px; }
    .form-group { margin-bottom: 0.85rem; }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0.5rem 0;
    letter-spacing: -0.03em;
}

.text-secondary {
    color: var(--auth-text-muted);
    font-size: 0.95rem;
}

.text-primary {
    color: var(--auth-primary);
}

.text-sm {
    font-size: 0.875rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--auth-text);
}

.form-input {
    width: 100%;
    height: 54px;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius);
    padding: 0 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    background: #fff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(10, 44, 162, 0.08);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--auth-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--auth-primary);
}

.hidden {
    display: none !important;
}

.btn-primary {
    width: 100%;
    height: 54px;
    background: var(--auth-primary);
    color: #fff;
    border: none;
    border-radius: var(--auth-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(10, 44, 162, 0.3);
}

/* --- THEME 1: AURORA GLOW (Deep & Fluid) --- */
body.login-style-aurora {
    background: #020617;
    overflow: hidden;
}

.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: auroraFloat 20s infinite alternate ease-in-out;
}

.aurora-blob:nth-child(1) {
    background: radial-gradient(circle, #4f46e5, transparent);
    top: -20%;
    left: -20%;
}

.aurora-blob:nth-child(2) {
    background: radial-gradient(circle, #7c3aed, transparent);
    bottom: -20%;
    right: -20%;
    animation-delay: -5s;
}

.aurora-blob:nth-child(3) {
    background: radial-gradient(circle, #db2777, transparent);
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    animation-delay: -10s;
}

@keyframes auroraFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(20%, 15%) scale(1.1) rotate(45deg);
    }
}

body.login-style-aurora .auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

body.login-style-aurora .auth-header h2 {
    color: #ffffff;
}

body.login-style-aurora .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.login-style-aurora .form-label {
    color: rgba(255, 255, 255, 0.9);
}

body.login-style-aurora .form-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.login-style-aurora .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.login-style-aurora .form-input:focus {
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.08);
}

body.login-style-aurora .btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

/* --- THEME 2: MATRIX NEON (Cyberpunk) --- */
body.login-style-cyber {
    background: #000;
    color: #00ffcc;
}

.cyber-grid {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 255, 204, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 204, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.cyber-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
}

body.login-style-cyber .auth-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffcc;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3), inset 0 0 15px rgba(0, 255, 204, 0.1);
    border-radius: 4px;
    /* Industrial look */
    clip-path: polygon(0 15px, 15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    color: #00ffcc;
}

body.login-style-cyber .auth-header h2 {
    color: #00ffcc;
}

body.login-style-cyber .text-secondary {
    color: rgba(0, 255, 204, 0.7) !important;
}

body.login-style-cyber .form-label {
    color: #00ffcc;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

body.login-style-cyber .form-input {
    background: #000;
    border-color: #00ffcc;
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    border-radius: 0;
}

body.login-style-cyber .form-input::placeholder {
    color: rgba(0, 255, 204, 0.4);
}

body.login-style-cyber a {
    color: #00ffcc;
}

body.login-style-cyber .btn-primary {
    background: #00ffcc;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
}

/* --- THEME 3: AI MASCOT (Interactive) --- */
body.login-style-mascot {
    background: var(--auth-bg);
    padding-top: 80px;
}

.mascot-container {
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
}

.mascot-body {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    border-radius: 32px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    animation: mascotBreath 3s ease-in-out infinite;
}

@keyframes mascotBreath {

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

    50% {
        transform: scale(1.04) translateY(-2px);
    }
}

/* Mascot Antennas/Ears */
.mascot-body::before,
.mascot-body::after {
    content: '';
    position: absolute;
    top: -15px;
    width: 20px;
    height: 30px;
    background: var(--auth-primary-dark);
    border-radius: 10px 10px 0 0;
    z-index: -1;
    transition: background 0.3s;
}

.mascot-body::before {
    left: 15px;
    transform: rotate(-15deg);
}

.mascot-body::after {
    right: 15px;
    transform: rotate(15deg);
}

.mascot-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 5;
}

.mascot-eyes-container {
    display: flex;
    gap: 12px;
    transition: transform 0.3s;
}

.mascot-eye {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

/* Glass Reflection for Eyes */
.mascot-eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 3;
}

.mascot-pupil {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s;
}

/* Admin Mode Easter Egg */
.mascot-body.admin-mode .mascot-pupil {
    background: transparent;
    color: #ffd700;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-body.admin-mode .mascot-pupil::before {
    content: '$';
    animation: dollarPulse 0.5s infinite alternate;
}

@keyframes dollarPulse {
    from {
        transform: scale(0.8);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }

    to {
        transform: scale(1.2);
        text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    }
}

/* Interactive Elements */
.mascot-mouth {
    width: 20px;
    height: 10px;
    border: 2px solid var(--auth-primary-dark);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mascot-cheek {
    position: absolute;
    width: 12px;
    height: 8px;
    background: rgba(255, 107, 107, 0.6);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), background 2s ease, transform 1s ease;
    top: 25px;
}

.cheek-left {
    left: -10px;
}

.cheek-right {
    right: -10px;
}

/* Emotional States */
.mascot-body.smiling .mascot-mouth {
    opacity: 1;
    transform: translateY(0);
    height: 12px;
    border-color: #fff;
}

.mascot-body.smiling .mascot-pupil {
    height: 6px;
    border-radius: 10px 10px 0 0;
}

/* Excitement Meter States */
.mascot-body.excited-1 .mascot-mouth {
    opacity: 1;
    transform: translateY(0);
    height: 6px;
    width: 24px;
}

.mascot-body.excited-2 .mascot-mouth {
    opacity: 1;
    transform: translateY(0);
    height: 10px;
    width: 30px;
    border-color: #fff;
}

.mascot-body.excited-2 .mascot-cheek {
    opacity: 0.6;
}

.mascot-body.excited-full .mascot-mouth {
    opacity: 1;
    transform: translateY(0);
    height: 14px;
    width: 34px;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.mascot-body.excited-full .mascot-cheek {
    opacity: 1;
}

/* Remove auto-jump from excited-full to control via JS */
.mascot-body.excited-full {
    animation: mascotBreath 3s ease-in-out infinite;
}

.mascot-body.angry {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%) !important;
}

.mascot-body.angry::before,
.mascot-body.angry::after {
    background: #7f1d1d;
}

.mascot-body.angry .mascot-cheek {
    opacity: 1;
}

.mascot-body.angry .mascot-pupil {
    background: #000;
}

/* Sleeping State */
.mascot-body.sleeping .mascot-eye {
    height: 4px !important;
    background: var(--auth-primary-dark);
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: none;
}

.mascot-body.sleeping .mascot-eye::after,
.mascot-body.sleeping .mascot-pupil {
    display: none;
}

.mascot-body.sleeping .mascot-mouth {
    opacity: 0;
}

/* ZZZZ Animation */
.zzz-container {
    position: absolute;
    top: -40px;
    right: -20px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.mascot-body.sleeping .zzz-container {
    opacity: 1;
}

.zzz {
    position: absolute;
    color: var(--auth-primary);
    font-weight: 800;
    font-size: 14px;
    animation: zzzFloat 2s infinite;
}

.zzz:nth-child(2) {
    animation-delay: 0.6s;
    font-size: 18px;
    right: -10px;
    top: -10px;
}

.zzz:nth-child(3) {
    animation-delay: 1.2s;
    font-size: 22px;
    right: -20px;
    top: -20px;
}

/* New Interactive Components */
.mascot-hand {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--auth-primary-dark);
    border-radius: 50%;
    bottom: 15px;
    z-index: 6;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
    opacity: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hand-left {
    left: 15px;
}

.hand-right {
    right: 15px;
}

/* Covering Eyes (Password Yumma) State */
.mascot-body.covering-eyes .mascot-eye {
    height: 4px !important;
    margin-top: 10px;
    border-radius: 4px;
    background: #fff;
}

.mascot-body.covering-eyes .mascot-eye::after,
.mascot-body.covering-eyes .mascot-pupil {
    display: none;
}

.mascot-body.covering-eyes .mascot-hand {
    transform: scale(0);
    opacity: 0;
}

/* Anti-Peeking State */
.mascot-body.peeking .mascot-eye {
    animation: mascotSurprise 0.3s ease-out forwards;
}

.mascot-body.peeking .mascot-pupil {
    transform: translate(-50%, -50%) scale(1.6);
}

.mascot-body.peeking .mascot-hand {
    opacity: 1;
    transform: scale(1) translateY(-45px);
    animation: handWave 0.5s ease-in-out infinite;
    z-index: 10;
}

/* Force Sad Mouth and hide cheeks during peeking */
.mascot-body.peeking .mascot-mouth {
    opacity: 1;
    transform: translateY(4px);
    height: 10px;
    width: 20px;
    border: 2px solid var(--auth-primary-dark);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: transparent;
}
.mascot-body.peeking .mascot-cheek { opacity: 0; }

/* Dizzy State (Spiral eyes) */
.mascot-body.dizzy .mascot-pupil {
    background: #000 !important;
    width: 14px;
    height: 14px;
    border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
    animation: spiralSpin 0.8s ease-in-out infinite; /* Slower, more "drifting" */
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.mascot-body.dizzy .mascot-mouth {
    height: 10px;
    width: 16px;
    border-radius: 50%;
    background: transparent;
    border-bottom: 2px solid #000;
}

/* Dizzy Wobble & Squinting */
.mascot-body.dizzy {
    animation: mascotDizzyWobble 1s ease-in-out infinite alternate !important;
}

.mascot-body.dizzy .mascot-eye {
    height: 14px;
    margin-top: 5px;
}

@keyframes mascotDizzyWobble {
    0% { transform: rotate(-5deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(5px); }
}

/* Head Spinning Stars */
.mascot-stars {
    position: absolute;
    top: -45px;
    left: 50%;
    width: 120px;
    height: 40px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 10;
}

.mascot-body.dizzy .mascot-stars {
    opacity: 1;
}

.star {
    position: absolute;
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    animation: starOrbit 2s linear infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: -0.66s; }
.star:nth-child(3) { animation-delay: -1.33s; }

@keyframes starOrbit {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg) scale(0.8); opacity: 0.3; z-index: -1; }
    25% { transform: rotate(90deg) translateX(20px) translateY(10px) rotate(-90deg) scale(1.1); opacity: 1; z-index: 10; }
    50% { transform: rotate(180deg) translateX(-50px) rotate(-180deg) scale(0.8); opacity: 0.3; z-index: -1; }
    75% { transform: rotate(270deg) translateX(-20px) translateY(-10px) rotate(-270deg) scale(0.6); opacity: 0.1; z-index: -1; }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg) scale(0.8); opacity: 0.3; z-index: -1; }
}

/* Shy State */
.mascot-body.shy {
    transform: scale(0.9) translateY(10px);
}
.mascot-body.shy .mascot-cheek {
    opacity: 0.8;
    background: #ff80ab;
    transform: scale(1.5);
}

/* Ready State (Submit Hover) */
.mascot-body.ready {
    transform: translateY(15px) rotateX(15deg);
}
.mascot-body.ready .mascot-eye {
    height: 18px;
    border-radius: 50% 50% 20% 20%;
}
.mascot-body.ready .mascot-pupil {
    transform: translate(-50%, -20%) scale(1.2);
}

@keyframes spiralSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes starFloat {
    0% { transform: translateY(10px) rotate(0deg) scale(0); opacity: 0; }
    20% { opacity: 1; transform: translateY(0) rotate(45deg) scale(1.2); }
    80% { opacity: 1; transform: translateY(-20px) rotate(135deg) scale(1); }
    100% { transform: translateY(-30px) rotate(180deg) scale(0.5); opacity: 0; }
}

@keyframes mascotSurprise {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1.3); }
}

@keyframes handWave {
    0%, 100% { transform: scale(1) translateY(-45px) rotate(-10deg); }
    50% { transform: scale(1) translateY(-50px) rotate(10deg); }
}

/* Sad/Failure State */
.mascot-body.sad .mascot-mouth {
    border-radius: 12px 12px 0 0;
    border-top: 3px solid #fff;
    border-bottom: 0;
    height: 8px;
    width: 20px;
    transform: translateY(4px);
    opacity: 1;
}

.mascot-body.sad .mascot-eye {
    height: 18px;
    border-radius: 50% 50% 10% 10%;
}

.mascot-body.sad .mascot-eyes-container {
    transform: translateY(4px);
}

/* Jump/Success Animation */
.mascot-body.jumping {
    animation: mascotJump 0.6s ease-in-out infinite;
}

@keyframes mascotJump {

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

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* Shake/Error Animation */
.mascot-body.shaking {
    animation: mascotShake 0.4s ease-in-out 2;
}

@keyframes mascotShake {

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

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Yawning State */
.mascot-body.yawning .mascot-mouth {
    opacity: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    transform: translateY(0);
}

.mascot-body.yawning .mascot-eye {
    height: 10px !important;
    margin-top: 5px;
    border-radius: 10px;
}

@keyframes zzzFloat {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(10px, -30px) scale(1.2);
        opacity: 0;
    }
}

.mascot-eye.closed::after {
    display: none;
}

.mascot-eye.tight-closed {
    height: 24px !important;
    width: 24px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-eye.tight-closed::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 3px;
    background: var(--auth-primary-dark);
    border-radius: 2px;
    transform: none;
}

.mascot-eye.tight-closed::after,
.mascot-eye.tight-closed .mascot-pupil {
    display: none;
}

/* --- THEME 4: 3D MESH (Modern Depth) --- */
body.login-style-mesh {
    background: #f1f5f9;
}

.mesh-container {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.mesh-sphere {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    opacity: 0.2;
    transform-origin: center;
}

body.login-style-mesh .auth-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid #fff;
    transform-style: preserve-3d;
}

/* --- THEME 5: DEFAULT (Minimalist Premium) --- */
body.login-style-default {
    background: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, var(--primary-light, rgba(10, 44, 162, 0.03)) 0, transparent 50%),
        radial-gradient(at 100% 100%, var(--primary-light, rgba(10, 44, 162, 0.03)) 0, transparent 50%);
}

body.login-style-default .auth-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

/* Mobile Responsiveness & Mascot Scaling */
@media (max-width: 480px) {
    body.auth-layout {
        align-items: flex-start;
        padding: 0;
        overflow-y: auto;
    }

    .auth-card {
        padding: 6.5rem 1.5rem 2.5rem; /* Increased top padding for larger mascot + logo breathing room */
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-shadow: none;
        background: var(--auth-bg);
        margin: 0;
    }

    .mascot-container {
        top: 25px; 
        transform: translateX(-50%) scale(0.85); /* Increased mascot size as requested */
        margin-bottom: 0;
        z-index: 100;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .auth-header {
        margin-top: 1rem; /* Move logo/header down */
        margin-bottom: 2rem;
    }
}