/* Professional UX Advanced Login Theme */

.mesh-bg-login {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 60%),
        radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.1) 0, transparent 60%);
    animation: slow-drift 15s ease-in-out infinite alternate;
}

.dark .mesh-bg-login {
    background-color: #020617;
    background-image:
        radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
        radial-gradient(at 90% 80%, rgba(124, 58, 237, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 50%, rgba(56, 189, 248, 0.05) 0, transparent 60%);
    animation: slow-drift-dark 20s ease-in-out infinite alternate;
}

@keyframes slow-drift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes slow-drift-dark {
    0% { background-position: 0% 0%; filter: hue-rotate(0deg); }
    100% { background-position: 100% 100%; filter: hue-rotate(15deg); }
}

/* Glassmorphism Forms */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.dark .glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Showcase Bento Cards */
.bento-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dark .bento-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.dark .bento-card:hover {
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Custom Animated Brand Logo */
.brand-core-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.brand-core-layer-1, .brand-core-layer-2, .brand-core-layer-3 {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
}

.brand-core-layer-1 {
    transform: rotateZ(0deg) scale(1);
    animation: core-pulse 4s infinite ease-in-out;
    opacity: 0.15;
    filter: blur(10px);
}

.brand-core-layer-2 {
    transform: rotateZ(30deg) scale(0.9);
    animation: core-spin 10s infinite linear;
    opacity: 0.4;
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-core-layer-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateZ(0deg) scale(0.85);
    background: linear-gradient(135deg, #4338ca, #7e22ce);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.3), 0 10px 20px rgba(79, 70, 229, 0.4);
    z-index: 10;
}

.dark .brand-core-layer-3 {
    background: linear-gradient(135deg, #1e1b4b, #3b0764);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

@keyframes core-spin {
    from { transform: rotateZ(0deg) scale(0.9); }
    to { transform: rotateZ(360deg) scale(0.9); }
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.3; }
}