/* ====================================
   MODERN ANIMATED LOGIN MODAL - GLASSMORPHISM
   ==================================== */

/* Modal Base */
.login-modal-modern .modal-backdrop {
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
}

.login-modal-container {
    position: relative;
    display: flex;
    width: 95%;
    max-width: 1100px;
    height: 650px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

[data-theme="light"] .login-modal-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* ====================================
   LEFT PANEL - ANIMATED TEXT SECTION
   ==================================== */

.login-left-panel {
    flex: 1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(8, 212, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(8, 212, 136, 0.15) 0%, transparent 70%),
        linear-gradient(135deg, 
            #0a0f1c 0%,
            #0d1b2a 25%,
            #1b263b 50%,
            #0d1b2a 75%,
            #0a0f1c 100%
        );
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(8, 212, 136, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

[data-theme="light"] .login-left-panel {
    background: 
        radial-gradient(circle at 10% 20%, rgba(8, 212, 136, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(102, 126, 234, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(8, 212, 136, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, 
            #f0f9ff 0%,
            #e0f2fe 25%,
            #dbeafe 50%,
            #e0f2fe 75%,
            #f0f9ff 100%
        );
    border-right: 1px solid rgba(8, 212, 136, 0.3);
}

/* Aurora/Northern Lights Effect */
.login-left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(8, 212, 136, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(102, 126, 234, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(8, 212, 136, 0.3) 0%, transparent 35%);
    animation: auroraMove 20s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.8;
}

[data-theme="light"] .login-left-panel::before {
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(8, 212, 136, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(102, 126, 234, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(8, 212, 136, 0.25) 0%, transparent 35%);
    opacity: 0.9;
}

/* Glowing Orbs/Light Spheres */
.login-left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(8, 212, 136, 0.5) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    animation: orbPulse 15s ease-in-out infinite;
    filter: blur(40px);
}

[data-theme="light"] .login-left-panel::after {
    background: 
        radial-gradient(circle at 20% 30%, rgba(8, 212, 136, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.35) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(8, 212, 136, 0.15) 0%, transparent 30%);
}

@keyframes auroraMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(10%, -10%) rotate(90deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-5%, 10%) rotate(180deg) scale(0.95);
        opacity: 0.7;
    }
    75% {
        transform: translate(15%, 5%) rotate(270deg) scale(1.05);
        opacity: 0.85;
    }
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    33% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    66% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

.animated-text-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

[data-theme="light"] .animated-text-container {
    color: var(--text-primary);
}

/* Advanced Grid Pattern with Depth */
.login-left-panel .grid-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        /* Main grid */
        linear-gradient(rgba(8, 212, 136, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 212, 136, 0.15) 1px, transparent 1px),
        /* Secondary grid (offset) */
        linear-gradient(rgba(102, 126, 234, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.08) 1px, transparent 1px),
        /* Accent lines */
        linear-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 
        50px 50px,
        50px 50px,
        100px 100px,
        100px 100px,
        200px 200px,
        200px 200px;
    background-position: 
        0 0,
        0 0,
        25px 25px,
        25px 25px,
        0 0,
        0 0;
    animation: gridSlide 30s linear infinite;
    opacity: 0.4;
}

[data-theme="light"] .login-left-panel .grid-lines {
    background-image: 
        linear-gradient(rgba(8, 212, 136, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 212, 136, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(8, 212, 136, 0.08) 2px, transparent 2px),
        linear-gradient(90deg, rgba(8, 212, 136, 0.08) 2px, transparent 2px);
    opacity: 0.5;
}

@keyframes gridSlide {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Scanline Effect */
.login-left-panel .grid-lines::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(8, 212, 136, 0.1) 50%,
        transparent 100%
    );
    background-size: 100% 200px;
    animation: scanline 8s linear infinite;
    opacity: 0.3;
}

[data-theme="light"] .login-left-panel .grid-lines::before {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(8, 212, 136, 0.15) 50%,
        transparent 100%
    );
}

@keyframes scanline {
    0% {
        background-position: 0 -200px;
    }
    100% {
        background-position: 0 100%;
    }
}

/* Spotlight/Vignette Effect */
.login-left-panel .grid-lines::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

[data-theme="light"] .login-left-panel .grid-lines::after {
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 100%
    );
}

/* Welcome Text Animation */
.animated-welcome-text {
    margin: 0 0 1.5rem 0;
    font-weight: 700;
}

.welcome-line {
    display: block;
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.2s;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .welcome-line {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-line {
    display: block;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-top: 0.5rem;
}

/* Individual Letter Animation */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px) rotateX(-90deg);
    animation: letterDrop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .letter {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.letter[data-letter="R"] { animation-delay: 0.4s; }
.letter[data-letter="E"] { animation-delay: 0.5s; }
.letter[data-letter="-"] { animation-delay: 0.6s; }
.letter[data-letter="C"] { animation-delay: 0.7s; }
.letter[data-letter="A"] { animation-delay: 0.8s; }
.letter[data-letter="P"] { animation-delay: 0.9s; }
.letter[data-letter="S"] { animation-delay: 1.0s; }

@keyframes letterDrop {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Tagline Animation */
.tagline-animated {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .tagline-animated {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline-word {
    display: inline-block;
    margin: 0 0.3rem;
}

/* Floating Geometric Shapes - Enhanced */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    animation: floatParticle 20s ease-in-out infinite;
}

/* Particle 1: Glowing Square */
.particle:nth-child(1) {
    top: 15%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(8, 212, 136, 0.4), rgba(8, 212, 136, 0.2));
    border-radius: 20px;
    animation: floatParticle 15s ease-in-out infinite, rotate3d 20s linear infinite, glow 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(8, 212, 136, 0.5),
        0 0 40px rgba(8, 212, 136, 0.3),
        inset 0 0 20px rgba(8, 212, 136, 0.2);
}

/* Particle 2: Diamond */
.particle:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 70px;
    height: 70px;
    background: linear-gradient(225deg, rgba(102, 126, 234, 0.4), rgba(102, 126, 234, 0.2));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: floatParticle2 18s ease-in-out infinite, rotate3d2 15s linear infinite, glow2 4s ease-in-out infinite;
    box-shadow: 
        0 0 25px rgba(102, 126, 234, 0.6),
        0 0 50px rgba(102, 126, 234, 0.3);
    filter: brightness(1.2);
}

/* Particle 3: Glowing Circle */
.particle:nth-child(3) {
    bottom: 20%;
    left: 25%;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(8, 212, 136, 0.5) 0%, rgba(8, 212, 136, 0.1) 100%);
    border-radius: 50%;
    animation: floatParticle3 12s ease-in-out infinite, pulse 4s ease-in-out infinite, glow 3.5s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(8, 212, 136, 0.7),
        0 0 60px rgba(8, 212, 136, 0.4),
        inset 0 0 30px rgba(8, 212, 136, 0.3);
}

/* Particle 4: Triangle */
.particle:nth-child(4) {
    top: 35%;
    left: 60%;
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(102, 126, 234, 0.3));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: floatParticle4 14s ease-in-out infinite, rotate3d3 18s linear infinite reverse, glow2 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(102, 126, 234, 0.3);
    filter: brightness(1.3);
}

/* Particle 5: Morphing Blob */
.particle:nth-child(5) {
    top: 75%;
    right: 30%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(8, 212, 136, 0.4), rgba(102, 126, 234, 0.3));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatParticle5 16s ease-in-out infinite, morphSmall 8s ease-in-out infinite, glow 4s ease-in-out infinite;
    box-shadow: 
        0 0 35px rgba(8, 212, 136, 0.6),
        0 0 70px rgba(8, 212, 136, 0.3);
    filter: blur(1px);
}

[data-theme="light"] .particle:nth-child(1) {
    background: linear-gradient(135deg, rgba(8, 212, 136, 0.5), rgba(8, 212, 136, 0.3));
    box-shadow: 
        0 0 20px rgba(8, 212, 136, 0.6),
        0 0 40px rgba(8, 212, 136, 0.4),
        inset 0 0 20px rgba(8, 212, 136, 0.3);
}

[data-theme="light"] .particle:nth-child(2) {
    background: linear-gradient(225deg, rgba(102, 126, 234, 0.5), rgba(102, 126, 234, 0.3));
    box-shadow: 
        0 0 25px rgba(102, 126, 234, 0.7),
        0 0 50px rgba(102, 126, 234, 0.4);
}

[data-theme="light"] .particle:nth-child(3) {
    background: radial-gradient(circle, rgba(8, 212, 136, 0.6) 0%, rgba(8, 212, 136, 0.2) 100%);
    box-shadow: 
        0 0 30px rgba(8, 212, 136, 0.8),
        0 0 60px rgba(8, 212, 136, 0.5),
        inset 0 0 30px rgba(8, 212, 136, 0.4);
}

[data-theme="light"] .particle:nth-child(4) {
    background: linear-gradient(180deg, rgba(8, 212, 136, 0.4), rgba(102, 126, 234, 0.4));
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.4);
}

[data-theme="light"] .particle:nth-child(5) {
    background: linear-gradient(45deg, rgba(8, 212, 136, 0.5), rgba(102, 126, 234, 0.4));
    box-shadow: 
        0 0 35px rgba(8, 212, 136, 0.7),
        0 0 70px rgba(8, 212, 136, 0.4);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, -20px) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes floatParticle2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: translate(-35px, 30px) scale(1.15);
        opacity: 0.9;
    }
    66% {
        transform: translate(25px, -25px) scale(0.95);
        opacity: 0.8;
    }
}

@keyframes floatParticle3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, -35px) scale(1.2);
    }
}

@keyframes floatParticle4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.75;
    }
    50% {
        transform: translate(35px, 30px) scale(1.1);
        opacity: 1;
    }
}

@keyframes floatParticle5 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-25px, 20px) scale(0.95);
        opacity: 0.9;
    }
}

@keyframes rotate3d {
    0% {
        transform: rotate(0deg) rotateY(0deg);
    }
    100% {
        transform: rotate(360deg) rotateY(360deg);
    }
}

@keyframes rotate3d2 {
    0% {
        transform: rotate(0deg) rotateX(0deg);
    }
    100% {
        transform: rotate(360deg) rotateX(360deg);
    }
}

@keyframes rotate3d3 {
    0% {
        transform: rotate(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotate(360deg) rotateZ(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes morphSmall {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Glow Animations */
@keyframes glow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(8, 212, 136, 0.5));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 25px rgba(8, 212, 136, 0.8));
    }
}

@keyframes glow2 {
    0%, 100% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(102, 126, 234, 0.6));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 30px rgba(102, 126, 234, 0.9));
    }
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50px) translateX(30px);
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
}

/* ====================================
   RIGHT PANEL - LOGIN FORM
   ==================================== */

.login-right-panel {
    flex: 1;
    padding: 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .login-right-panel {
    background: rgba(255, 255, 255, 0.5);
}

.login-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    z-index: 10;
}

[data-theme="light"] .login-modal-close {
    background: rgba(255, 255, 255, 0.7);
}

.login-modal-close:hover {
    background: rgba(229, 62, 62, 0.8);
    border-color: rgba(229, 62, 62, 1);
    color: white;
    transform: rotate(90deg);
}

.login-form-wrapper {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

/* Modern Input Groups */
.modern-input-group {
    margin-bottom: 1.25rem;
}

.modern-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    pointer-events: none;
    z-index: 2;
    display: inline-flex;
}

[data-theme="light"] .input-icon {
    color: var(--text-secondary);
}

.input-icon svg {
    color: inherit;
}

.modern-input {
    padding-left: 3rem !important;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    width: 100%;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

[data-theme="dark"] .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

[data-theme="light"] .modern-input {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modern-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
    opacity: 1;
}

.modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(8, 212, 136, 0.2);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

[data-theme="light"] .modern-input:focus {
    background: rgba(255, 255, 255, 0.8);
}

.modern-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
    z-index: 2;
}

[data-theme="light"] .modern-toggle-password {
    color: var(--text-secondary);
}

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

/* Modern Options */
.modern-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modern-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="light"] .modern-checkbox-custom {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.checkbox-input:checked + .modern-checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked + .modern-checkbox-custom::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12.6111L8.92308 17.5L20 6.5' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Modern Login Button */
.modern-login-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, 
        rgba(8, 212, 136, 0.8) 0%, 
        rgba(8, 212, 136, 1) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(8, 212, 136, 0.3);
}

.modern-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(8, 212, 136, 0.5);
    background: linear-gradient(135deg, 
        rgba(8, 212, 136, 0.9) 0%, 
        rgba(8, 212, 136, 1) 100%
    );
}

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

.modern-login-btn svg {
    transition: transform 0.3s ease;
}

.modern-login-btn:hover svg {
    transform: translateX(5px);
}

/* Divider */
.divider-with-text {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .divider-with-text::before,
[data-theme="light"] .divider-with-text::after {
    background: rgba(0, 0, 0, 0.1);
}

.divider-with-text span {
    padding: 0 1rem;
}

/* Modern Google Button */
.modern-google-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .modern-google-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modern-google-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modern-google-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Signup Link */
.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.link-animated {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.link-animated:hover::after {
    width: 100%;
}

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

@media (max-width: 968px) {
    .login-modal-container {
        flex-direction: column;
        height: auto;
        max-height: 95vh;
        overflow-y: auto;
    }

    .login-left-panel {
        min-height: 220px;
        padding: 2rem;
    }

    .brand-line {
        font-size: 2.2rem !important;
    }

    .welcome-line {
        font-size: 1.1rem !important;
    }

    .tagline-animated {
        font-size: 0.85rem !important;
    }

    .login-right-panel {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .login-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .login-left-panel {
        min-height: 180px;
        padding: 1.5rem;
    }

    .brand-line {
        font-size: 2rem !important;
    }

    .welcome-line {
        font-size: 1rem !important;
    }

    .tagline-animated {
        font-size: 0.8rem !important;
    }

    .login-right-panel {
        padding: 1.5rem 1rem;
    }

    .modern-input,
    .modern-login-btn,
    .modern-google-btn {
        height: 48px;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pulse Animation for Particles */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}
