/* ============================================================
   LOGIN PAGE STYLES - Gconnect Spaces (ULTIMATE EDITION)
   ============================================================ */


/* ===== CSS VARIABLES / THEME ===== */

:root {
    --primary: #009688;
    --primary-dark: #00796b;
    --primary-light: #4db6ac;
    --accent: #80cbc4;
    --gradient-1: linear-gradient(135deg, #009688 0%, #004d40 50%, #001f1a 100%);
    --gradient-2: linear-gradient(135deg, #009688, #3a4749);
    --gradient-3: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(255, 255, 255, 0.3);
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 150, 136, 0.3);
    --radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===== RESET & BASE ===== */

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Nunito Sans', sans-serif;
}


/* ===== PAGE LOADER - PREMIUM WHITE EDITION ===== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
}


/* Subtle background pattern for depth */

.page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 150, 136, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 150, 136, 0.03) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(0, 150, 136, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 1;
}


/* ===== LOGO WITH RADIAL GLOW ===== */

.loader-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.loader-logo {
    width: 85px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: logoSoftPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 15px rgba(0, 150, 136, 0.15));
}


/* Outer glow ring around logo */

.loader-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(0, 150, 136, 0.1);
    animation: glowRingPulse 2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.loader-glow-ring::before,
.loader-glow-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid transparent;
}

.loader-glow-ring::before {
    width: 110px;
    height: 110px;
    border-top-color: rgba(0, 150, 136, 0.2);
    border-right-color: rgba(0, 150, 136, 0.1);
    animation: ringSpin 3s linear infinite;
}

.loader-glow-ring::after {
    width: 90px;
    height: 90px;
    border-bottom-color: rgba(0, 150, 136, 0.15);
    border-left-color: rgba(0, 150, 136, 0.1);
    animation: ringSpinReverse 2.5s linear infinite;
}

@keyframes ringSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes ringSpinReverse {
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes glowRingPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 150, 136, 0.05);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 150, 136, 0.12);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes logoSoftPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 15px rgba(0, 150, 136, 0.15));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 8px 30px rgba(0, 150, 136, 0.25));
    }
}


/* ===== CONCENTRIC ATOM SPINNER ===== */

.loader-spinner {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
}

.loader-spinner .orbit-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-spinner .orbit-ring:nth-child(1) {
    border-top-color: #009688;
    border-right-color: rgba(0, 150, 136, 0.15);
    animation: orbitSpin1 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-spinner .orbit-ring:nth-child(2) {
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
    border-bottom-color: #00bcd4;
    border-left-color: rgba(0, 188, 212, 0.15);
    animation: orbitSpin2 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-spinner .orbit-ring:nth-child(3) {
    width: 55%;
    height: 55%;
    top: 22.5%;
    left: 22.5%;
    border-top-color: #4db6ac;
    border-right-color: rgba(77, 182, 172, 0.15);
    animation: orbitSpin3 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


/* Center dot */

.loader-spinner .orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #009688;
    animation: centerPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 150, 136, 0.4);
}

@keyframes orbitSpin1 {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitSpin2 {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes orbitSpin3 {
    to {
        transform: rotate(360deg);
    }
}

@keyframes centerPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(0, 150, 136, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 25px rgba(0, 150, 136, 0.6);
    }
}


/* ===== LOADING TEXT ===== */

.loader-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8898aa;
    margin-bottom: 16px;
    animation: textFadeIn 0.6s ease;
}

.loader-text .loader-brand-name {
    color: #009688;
    font-weight: 800;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== PREMIUM PROGRESS BAR ===== */

.loader-progress-wrapper {
    width: 220px;
    margin: 0 auto;
}

.loader-progress-track {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #009688, #00bcd4, #4db6ac);
    background-size: 200% 100%;
    animation: progressGlow 1.5s ease infinite;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}


/* Shimmer sweep on progress bar */

.loader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerSweep 1.5s ease-in-out infinite;
}

@keyframes shimmerSweep {
    to {
        left: 200%;
    }
}

@keyframes progressGlow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.loader-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #adb5bd;
}

.loader-progress-text .loader-percentage {
    color: #009688;
    font-size: 14px;
    transition: all 0.3s ease;
}

.loader-status {
    font-size: 11px;
    color: #adb5bd;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.4s ease;
}


/* ===== PARTICLE CANVAS ===== */

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}


/* ===== MAGIC CURSOR GLOW ===== */

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 150, 136, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.visible {
    opacity: 1;
}


/* ===== SPLIT LAYOUT ===== */

.login-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
    position: relative;
    overflow: hidden;
}

.login-image-side {
    flex: 0 0 55%;
    max-width: 55%;
    position: relative;
    background: var(--gradient-1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 200% 200%;
    animation: bgShift 8s ease-in-out infinite;
}

@keyframes bgShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
}

.login-image-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 1;
    animation: shimmerRotate 20s linear infinite;
}

@keyframes shimmerRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.login-image-side .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.92) 0%, rgba(0, 77, 64, 0.85) 100%);
    z-index: 3;
}

.login-image-side .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: blur(2px) brightness(0.6);
}


/* ===== FLOATING SHAPES 3D ===== */

.floating-shapes-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    perspective: 800px;
}

.floating-shapes-3d .shape-3d {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    transform-style: preserve-3d;
    will-change: transform;
}

.floating-shapes-3d .shape-3d:nth-child(1) {
    width: 140px;
    height: 140px;
    background: #fff;
    left: 8%;
    top: -10%;
    animation: float3D 18s ease-in-out infinite;
}

.floating-shapes-3d .shape-3d:nth-child(2) {
    width: 90px;
    height: 90px;
    background: #80cbc4;
    left: 28%;
    top: 60%;
    animation: float3D 22s ease-in-out infinite 2s;
}

.floating-shapes-3d .shape-3d:nth-child(3) {
    width: 70px;
    height: 70px;
    background: #fff;
    left: 48%;
    top: 20%;
    animation: float3D 15s ease-in-out infinite 4s;
}

.floating-shapes-3d .shape-3d:nth-child(4) {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.8);
    left: 65%;
    top: 70%;
    animation: float3D 20s ease-in-out infinite 1s;
}

.floating-shapes-3d .shape-3d:nth-child(5) {
    width: 50px;
    height: 50px;
    background: #80cbc4;
    left: 80%;
    top: 10%;
    animation: float3D 25s ease-in-out infinite 3s;
}

.floating-shapes-3d .shape-3d:nth-child(6) {
    width: 170px;
    height: 170px;
    background: rgba(255, 255, 255, 0.5);
    left: 15%;
    top: 40%;
    animation: float3D 28s ease-in-out infinite 5s;
}

@keyframes float3D {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
    }
    25% {
        transform: translate3d(30px, -40px, 50px) rotateX(5deg) rotateY(10deg) scale(1.1);
    }
    50% {
        transform: translate3d(-20px, 20px, -30px) rotateX(-5deg) rotateY(-8deg) scale(0.95);
    }
    75% {
        transform: translate3d(40px, 30px, 20px) rotateX(8deg) rotateY(-5deg) scale(1.05);
    }
}


/* ===== FLOATING ICONS ===== */

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.floating-icons .float-icon {
    position: absolute;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.15);
    animation: iconFloat 20s linear infinite;
}

.floating-icons .float-icon:nth-child(1) {
    left: 10%;
    top: -5%;
    animation-duration: 18s;
    font-size: 32px;
}

.floating-icons .float-icon:nth-child(2) {
    left: 30%;
    top: 15%;
    animation-duration: 25s;
    animation-delay: 3s;
    font-size: 24px;
}

.floating-icons .float-icon:nth-child(3) {
    left: 55%;
    top: -8%;
    animation-duration: 22s;
    animation-delay: 5s;
    font-size: 36px;
}

.floating-icons .float-icon:nth-child(4) {
    left: 75%;
    top: 20%;
    animation-duration: 20s;
    animation-delay: 2s;
    font-size: 26px;
}

.floating-icons .float-icon:nth-child(5) {
    left: 40%;
    top: 40%;
    animation-duration: 28s;
    animation-delay: 7s;
    font-size: 30px;
}

.floating-icons .float-icon:nth-child(6) {
    left: 85%;
    top: 50%;
    animation-duration: 24s;
    animation-delay: 4s;
    font-size: 22px;
}

.floating-icons .float-icon:nth-child(7) {
    left: 20%;
    top: 65%;
    animation-duration: 26s;
    animation-delay: 6s;
    font-size: 34px;
}

.floating-icons .float-icon:nth-child(8) {
    left: 65%;
    top: 75%;
    animation-duration: 19s;
    animation-delay: 1s;
    font-size: 28px;
}

@keyframes iconFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}


/* ===== LEFT SIDE CONTENT ===== */

.login-image-side .content-overlay {
    position: relative;
    z-index: 4;
    text-align: center;
    color: #fff;
    padding: 40px;
    max-width: 520px;
}

.login-image-side .content-overlay .brand-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
    }
}

.login-image-side .content-overlay h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.login-image-side .content-overlay p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
}

.login-image-side .content-overlay .feature-list {
    text-align: left;
    display: inline-block;
    list-style: none;
    padding: 0;
}

.login-image-side .content-overlay .feature-list li {
    padding: 9px 0;
    font-size: 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: default;
}

.login-image-side .content-overlay .feature-list li:hover {
    transform: translateX(8px);
    opacity: 1;
}

.login-image-side .content-overlay .feature-list li i {
    margin-right: 14px;
    font-size: 18px;
    color: #80cbc4;
}


/* ===== ANIMATED GRADIENT TEXT ===== */

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #80cbc4 30%, #b2dfdb 60%, #fff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}


/* ===== TYPEWRITER TAGLINE ===== */

.tagline-wrapper {
    min-height: 32px;
    margin-bottom: 28px;
}

.tagline-wrapper .tagline-text {
    font-size: 19px;
    font-weight: 600;
    color: var(--accent);
    border-right: 2px solid var(--accent);
    padding-right: 6px;
    animation: blink 0.75s step-end infinite;
    text-shadow: 0 0 20px rgba(128, 203, 196, 0.3);
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}


/* ===== FORM SIDE ===== */

.login-form-side {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f0f2f5;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 150, 136, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 150, 136, 0.03) 0%, transparent 50%);
    position: relative;
}


/* ===== LOGIN CARD WITH 3D TILT ===== */

.login-card {
    width: 100%;
    max-width: 430px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 45px 40px 40px;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
    transition: transform 0.1s ease;
}


/* Animated gradient border */

.login-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: calc(var(--radius) + 3px);
    background: linear-gradient(45deg, #009688, #00bcd4, #667eea, #764ba2, #009688);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderGlow 6s ease infinite;
    opacity: 0.7;
    filter: blur(1px);
}

@keyframes borderGlow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}


/* Glassmorphism layer */

.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: -1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 40px rgba(0, 150, 136, 0.05);
}


/* ===== ENTRANCE ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    z-index: 1;
}

.login-card .stagger-item:nth-child(1) {
    animation-delay: 0.15s;
}

.login-card .stagger-item:nth-child(2) {
    animation-delay: 0.25s;
}

.login-card .stagger-item:nth-child(3) {
    animation-delay: 0.35s;
}

.login-card .stagger-item:nth-child(4) {
    animation-delay: 0.45s;
}

.login-card .stagger-item:nth-child(5) {
    animation-delay: 0.55s;
}

.login-card .stagger-item:nth-child(6) {
    animation-delay: 0.65s;
}

.login-card .stagger-item:nth-child(7) {
    animation-delay: 0.75s;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== LOGO AREA ===== */

.login-card .logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .logo-area img {
    height: 58px;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-card .logo-area img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.login-card .logo-area h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-card .logo-area p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
}


/* ===== FLOATING LABEL FORM STYLES ===== */

.login-card .form-group {
    position: relative;
    margin-bottom: 22px;
    transform-style: preserve-3d;
}

.login-card .form-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 17px;
    transition: var(--transition-smooth);
    z-index: 2;
    pointer-events: none;
}

.login-card .form-group .form-control {
    height: 54px;
    border-radius: 14px;
    border: 2px solid #e9ecef;
    padding-left: 50px;
    padding-right: 50px;
    font-size: 15px;
    background: #f8f9fc;
    transition: var(--transition-smooth);
    color: #495057;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.login-card .form-group .form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.1), 0 0 20px rgba(0, 150, 136, 0.05);
    transform: translateZ(10px);
}

.login-card .form-group .form-control:focus~.input-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.login-card .form-group .form-control:focus~.floating-label,
.login-card .form-group .form-control:not(:placeholder-shown)~.floating-label {
    top: -10px;
    left: 14px;
    font-size: 11px;
    color: var(--primary);
    background: #fff;
    padding: 0 8px;
    opacity: 1;
}

.floating-label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #adb5bd;
    pointer-events: none;
    transition: var(--transition-smooth);
    font-weight: 500;
    background: transparent;
    padding: 0;
    opacity: 0;
}


/* Show label when focused or filled */

.login-card .form-group .form-control:focus~.floating-label,
.login-card .form-group .form-control:not(:placeholder-shown)~.floating-label {
    opacity: 1;
}

.login-card .form-group .form-control.is-invalid {
    border-color: #f5365c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 54, 92, 0.1), 0 0 20px rgba(245, 54, 92, 0.05);
}

.login-card .form-group .form-control.is-invalid~.input-icon {
    color: #f5365c;
    transform: translateY(-50%) scale(1.1);
}

.login-card .form-group .form-control.is-valid {
    border-color: #2dce89;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 206, 137, 0.1), 0 0 20px rgba(45, 206, 137, 0.05);
}

.login-card .form-group .form-control.is-valid~.input-icon {
    color: #2dce89;
}


/* Remove default placeholder */

.login-card .form-group .form-control::placeholder {
    color: transparent;
}


/* ===== VALIDATION ICONS ===== */

.login-card .form-group .validation-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 18px;
    z-index: 2;
    opacity: 0;
    transition: var(--transition-smooth);
}

.login-card .form-group .validation-icon.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.login-card .form-group .validation-icon.is-valid-icon {
    color: #2dce89;
}

.login-card .form-group .validation-icon.is-invalid-icon {
    color: #f5365c;
}


/* ===== PASSWORD TOGGLE ===== */

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 5px;
    font-size: 17px;
    z-index: 2;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(0, 150, 136, 0.06);
}

.password-toggle:focus {
    outline: none;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.9);
}


/* ===== PASSWORD STRENGTH BAR ===== */

.password-strength-wrapper {
    margin-top: 10px;
    padding-left: 50px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.password-strength-wrapper.active {
    max-height: 50px;
    opacity: 1;
}

.password-strength-bar {
    height: 4px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-bar .strength-indicator {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
}

.password-strength-bar .strength-indicator.weak {
    width: 25%;
    background: #f5365c;
    box-shadow: 0 0 10px rgba(245, 54, 92, 0.3);
}

.password-strength-bar .strength-indicator.medium {
    width: 50%;
    background: #fb6340;
    box-shadow: 0 0 10px rgba(251, 99, 64, 0.3);
}

.password-strength-bar .strength-indicator.strong {
    width: 75%;
    background: #ffd600;
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.3);
}

.password-strength-bar .strength-indicator.very-strong {
    width: 100%;
    background: #2dce89;
    box-shadow: 0 0 10px rgba(45, 206, 137, 0.3);
}

.password-strength-text {
    font-size: 11px;
    color: #8898aa;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}


/* ===== CUSTOM ANIMATED CHECKBOX ===== */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
}

.custom-checkbox-label input {
    display: none;
}

.checkbox-visual {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    background: #fff;
}

.custom-checkbox-label input:checked+.checkbox-visual {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 150, 136, 0.3);
    animation: checkboxPop 0.3s ease;
}

.custom-checkbox-label input:checked+.checkbox-visual i {
    opacity: 1;
    transform: scale(1);
}

.checkbox-visual i {
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-smooth);
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.login-options .forgot-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
}

.login-options .forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.login-options .forgot-link:hover {
    color: var(--primary-dark);
}

.login-options .forgot-link:hover::after {
    width: 100%;
}


/* ===== LIQUID FILL SUBMIT BUTTON ===== */

.btn-login {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    background: var(--gradient-2);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-login:hover::after {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 150, 136, 0.35), 0 0 40px rgba(0, 150, 136, 0.1);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 150, 136, 0.3);
}

.btn-login .spinner-border {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: none;
}

.btn-login.loading .spinner-border {
    display: inline-block;
    animation: spinner-border 0.75s linear infinite;
}

.btn-login.loading .btn-text {
    visibility: hidden;
}

.btn-login.loading .btn-loading-text {
    display: inline;
}

.btn-login .btn-loading-text {
    display: none;
    position: absolute;
}

.btn-login .btn-text,
.btn-login .btn-loading-text {
    position: relative;
    z-index: 2;
}


/* ===== RIPPLE EFFECT ===== */

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
    z-index: 2;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* ===== SOCIAL LOGIN ===== */

.social-divider {
    text-align: center;
    margin: 25px 0 20px;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.social-divider span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 18px;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.social-login-btns {
    display: flex;
    gap: 12px;
}

.social-login-btns .btn-social {
    flex: 1;
    height: 50px;
    border-radius: 14px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.social-login-btns .btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.social-login-btns .btn-social:active {
    transform: translateY(-1px);
}

.social-login-btns .btn-social i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.social-login-btns .btn-social:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.social-login-btns .btn-google:hover {
    border-color: #dc4a38;
    color: #dc4a38;
    background: #fff5f3;
    box-shadow: 0 8px 25px rgba(220, 74, 56, 0.15);
}

.social-login-btns .btn-linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
    background: #f0f8ff;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.15);
}


/* ===== REGISTER LINK ===== */

.register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.register-link p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.register-link a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.register-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.register-link a:hover {
    color: var(--primary-dark);
}

.register-link a:hover::after {
    width: 100%;
}


/* ===== ALERT / ERROR TOAST ===== */

.login-alert {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    min-width: 340px;
    max-width: 440px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-left: 5px solid #f5365c;
}

.login-alert.alert-success {
    border-left-color: #2dce89;
}

.login-alert.alert-warning {
    border-left-color: #fb6340;
}

.login-alert.alert-error {
    border-left-color: #f5365c;
}

.login-alert.alert-info {
    border-left-color: #11cdef;
}

.login-alert .alert-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.login-alert .alert-content {
    flex: 1;
}

.login-alert .alert-content .alert-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.login-alert .alert-content .alert-message {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.login-alert .alert-close {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.3s ease;
    line-height: 1;
}

.login-alert .alert-close:hover {
    color: #495057;
    transform: rotate(90deg);
}

.login-alert.alert-hide {
    animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(120px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(120px);
    }
}


/* ===== SHAKE ANIMATION ===== */

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-6px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(6px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===== INVALID FEEDBACK ===== */

.login-card .invalid-feedback {
    font-size: 12px;
    padding-left: 50px;
    margin-top: 5px;
    font-weight: 600;
    color: #f5365c;
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}


/* ===== KEYFRAMES ===== */

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}


/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1199.98px) {
    .login-image-side {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .login-form-side {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991.98px) {
    .login-wrapper {
        overflow-y: auto;
    }
    .login-image-side {
        display: none;
    }
    .login-form-side {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 24px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .login-card {
        padding: 35px 30px 30px;
    }
    .cursor-glow {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .login-form-side {
        padding: 16px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .login-card {
        padding: 28px 20px 24px;
        border-radius: 14px;
    }
    .login-card .logo-area img {
        height: 48px;
    }
    .login-card .logo-area h3 {
        font-size: 20px;
    }
    .login-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .social-login-btns {
        flex-direction: column;
    }
    .login-card .form-control {
        height: 50px;
        font-size: 14px;
    }
    .login-alert {
        min-width: auto;
        right: 16px;
        left: 16px;
        top: 16px;
    }
}


/* ===== FOCUS VISIBLE FOR ACCESSIBILITY ===== */

.btn-login:focus-visible,
.form-control:focus-visible,
.password-toggle:focus-visible,
.btn-social:focus-visible,
.forgot-link:focus-visible,
.alert-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ============================================================
   NEW 3D & INTERACTIVE ENHANCEMENTS - GCONNECT SPACES
   ============================================================ */


/* ===== 1. 3D ROTATING WIREFRAME CUBE — VIBRANT HIGHLIGHT EDITION ===== */

.cube-3d-wrapper {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
    perspective: 800px;
    z-index: 3;
    opacity: 0.9;
    pointer-events: none;
    filter: drop-shadow(0 0 40px rgba(0, 150, 136, 0.25));
}


/* Outer glow ring behind cube */

.cube-3d-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 150, 136, 0.15) 0%, rgba(0, 188, 212, 0.08) 30%, transparent 70%);
    animation: cubeGlowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes cubeGlowPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.cube-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cube-3d .cube-face {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2.5px solid;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    backface-visibility: hidden;
    transition: all 0.3s ease;
    animation: faceHighlight 4s ease-in-out infinite;
}


/* Each face gets a unique vibrant color */

.cube-3d .cube-face.front {
    transform: translateZ(60px);
    border-color: #009688;
    background: rgba(0, 150, 136, 0.12);
    color: #009688;
    box-shadow: 0 0 25px rgba(0, 150, 136, 0.2), inset 0 0 30px rgba(0, 150, 136, 0.05);
    animation-delay: 0s;
}

.cube-3d .cube-face.back {
    transform: rotateY(180deg) translateZ(60px);
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.12);
    color: #e91e63;
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.2), inset 0 0 30px rgba(233, 30, 99, 0.05);
    animation-delay: 0.3s;
}

.cube-3d .cube-face.right {
    transform: rotateY(90deg) translateZ(60px);
    border-color: #00bcd4;
    background: rgba(0, 188, 212, 0.12);
    color: #00bcd4;
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.2), inset 0 0 30px rgba(0, 188, 212, 0.05);
    animation-delay: 0.6s;
}

.cube-3d .cube-face.left {
    transform: rotateY(-90deg) translateZ(60px);
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.12);
    color: #ff9800;
    box-shadow: 0 0 25px rgba(255, 152, 0, 0.2), inset 0 0 30px rgba(255, 152, 0, 0.05);
    animation-delay: 0.9s;
}

.cube-3d .cube-face.top {
    transform: rotateX(90deg) translateZ(60px);
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.12);
    color: #9c27b0;
    box-shadow: 0 0 25px rgba(156, 39, 176, 0.2), inset 0 0 30px rgba(156, 39, 176, 0.05);
    animation-delay: 1.2s;
}

.cube-3d .cube-face.bottom {
    transform: rotateX(-90deg) translateZ(60px);
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.2), inset 0 0 30px rgba(76, 175, 80, 0.05);
    animation-delay: 1.5s;
}


/* Face pulse highlight animation */

@keyframes faceHighlight {
    0%,
    100% {
        border-width: 2.5px;
        filter: brightness(1);
    }
    50% {
        border-width: 4px;
        filter: brightness(1.4);
        transform: translateZ(60px) scale(1.04);
    }
}


/* Correct transform for bottom face during highlight */

.cube-3d .cube-face.bottom {
    animation-name: faceHighlightBottom;
}

@keyframes faceHighlightBottom {
    0%,
    100% {
        border-width: 2.5px;
        filter: brightness(1);
    }
    50% {
        border-width: 4px;
        filter: brightness(1.4);
    }
}


/* Icons with colored glow matching each face */

.cube-3d .cube-face i {
    font-size: 28px;
    opacity: 0.8;
    transition: all 0.4s ease;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.cube-3d .cube-face.front i {
    filter: drop-shadow(0 0 12px rgba(0, 150, 136, 0.6));
}

.cube-3d .cube-face.back i {
    filter: drop-shadow(0 0 12px rgba(233, 30, 99, 0.6));
}

.cube-3d .cube-face.right i {
    filter: drop-shadow(0 0 12px rgba(0, 188, 212, 0.6));
}

.cube-3d .cube-face.left i {
    filter: drop-shadow(0 0 12px rgba(255, 152, 0, 0.6));
}

.cube-3d .cube-face.top i {
    filter: drop-shadow(0 0 12px rgba(156, 39, 176, 0.6));
}

.cube-3d .cube-face.bottom i {
    filter: drop-shadow(0 0 12px rgba(76, 175, 80, 0.6));
}

@keyframes cubeRotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(45deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* ===== 2. 3D PERSPECTIVE GRID FLOOR ===== */

.grid-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 2;
    overflow: hidden;
    perspective: 500px;
    pointer-events: none;
}

.grid-floor-inner {
    position: absolute;
    bottom: -10%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translateX(-50%) rotateX(85deg);
    transform-origin: bottom center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 8s linear infinite;
}

@keyframes gridScroll {
    from {
        transform: translateX(-50%) rotateX(85deg) translateY(0);
    }
    to {
        transform: translateX(-50%) rotateX(85deg) translateY(50px);
    }
}


/* ===== 3. DYNAMIC GRADIENT ORBS ===== */

.gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-orbs .orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #009688 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: orbDrift1 12s ease-in-out infinite;
}

.gradient-orbs .orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #00bcd4 0%, transparent 70%);
    bottom: -5%;
    right: -5%;
    animation: orbDrift2 15s ease-in-out infinite;
}

.gradient-orbs .orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #4db6ac 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation: orbDrift3 10s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(60px, 40px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 80px) scale(0.9);
    }
}

@keyframes orbDrift2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-60px, -40px) scale(0.9);
    }
    66% {
        transform: translate(40px, -80px) scale(1.15);
    }
}

@keyframes orbDrift3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.3;
    }
}


/* ===== 4. SVG WAVE BACKGROUND ===== */

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}

.wave-bg svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-bg .wave-path-1 {
    animation: waveMove1 6s ease-in-out infinite;
}

.wave-bg .wave-path-2 {
    animation: waveMove2 8s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes waveMove1 {
    0%,
    100% {
        d: path("M0,40 C120,80 240,0 360,40 C480,80 600,0 720,40 C840,80 960,0 1080,40 L1080,80 L0,80 Z");
    }
    50% {
        d: path("M0,50 C120,10 240,70 360,50 C480,10 600,70 720,50 C840,10 960,70 1080,50 L1080,80 L0,80 Z");
    }
}

@keyframes waveMove2 {
    0%,
    100% {
        d: path("M0,60 C180,20 360,80 540,60 C720,20 900,80 1080,60 L1080,80 L0,80 Z");
    }
    50% {
        d: path("M0,65 C180,85 360,25 540,65 C720,85 900,25 1080,65 L1080,80 L0,80 Z");
    }
}


/* ===== 5. MAGNETIC BUTTON EFFECT BASE ===== */

.btn-login {
    transform-style: preserve-3d;
}


/* ===== 6. 3D EDGE GLOW ON LOGIN CARD ===== */

.login-card {
    transform-style: preserve-3d;
}

.login-card .card-edge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: calc(var(--radius) + 2px);
    z-index: -2;
    background: transparent;
    transition: background 0.3s ease;
    pointer-events: none;
}


/* ===== 7. 3D TEXT REVEAL ANIMATION ===== */

.text-reveal-3d {
    display: inline-block;
    perspective: 600px;
}

.text-reveal-3d .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-40deg);
    animation: reveal3D 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.text-reveal-3d .reveal-word:nth-child(1) {
    animation-delay: 0.1s;
}

.text-reveal-3d .reveal-word:nth-child(2) {
    animation-delay: 0.25s;
}

.text-reveal-3d .reveal-word:nth-child(3) {
    animation-delay: 0.4s;
}

.text-reveal-3d .reveal-word:nth-child(4) {
    animation-delay: 0.55s;
}

.text-reveal-3d .reveal-word:nth-child(5) {
    animation-delay: 0.7s;
}

.text-reveal-3d .reveal-word:nth-child(6) {
    animation-delay: 0.85s;
}

@keyframes reveal3D {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}


/* ===== 8. FLOATING ICON 3D ENHANCEMENT ===== */

.floating-icons .float-icon {
    transform-style: preserve-3d;
    animation: iconFloat3D 20s linear infinite;
}

@keyframes iconFloat3D {
    0% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.18;
    }
    50% {
        transform: translateY(-50vh) rotateX(180deg) rotateY(360deg);
        opacity: 0.18;
    }
    90% {
        opacity: 0.18;
    }
    100% {
        transform: translateY(-100vh) rotateX(360deg) rotateY(720deg);
        opacity: 0;
    }
}


/* ===== 9. ENHANCED INPUT 3D DEPTH ===== */

.login-card .form-group .form-control:focus {
    transform: translateZ(15px);
    box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.12), 0 15px 35px rgba(0, 150, 136, 0.1), 0 0 30px rgba(0, 150, 136, 0.05);
}

.login-card .form-group {
    transition: transform 0.2s ease;
}

.login-card .form-group:focus-within {
    transform: translateZ(5px);
}


/* ===== 10. LOGO 3D HOVER ENHANCEMENT ===== */

.login-card .logo-area img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card .logo-area img:hover {
    transform: scale(1.08) rotate(-3deg) translateZ(20px);
    filter: drop-shadow(0 8px 30px rgba(0, 150, 136, 0.25));
}


/* ===== 11. STATS COUNTER ON LEFT SIDE ===== */

.stats-counter {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 25px;
}

.stats-counter .stat-item {
    text-align: center;
    opacity: 0;
    animation: statItemFade 0.6s ease forwards;
}

.stats-counter .stat-item:nth-child(1) {
    animation-delay: 0.8s;
}

.stats-counter .stat-item:nth-child(2) {
    animation-delay: 0.95s;
}

.stats-counter .stat-item:nth-child(3) {
    animation-delay: 1.1s;
}

.stats-counter .stat-item .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.stats-counter .stat-item .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes statItemFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}