/* Modern Login & Forgot Password Styles with Latest Animations */

/* CSS Variables for Theme Support */
:root {
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-dark: linear-gradient(135deg, #000000 0%, #0a0a0f 30%, #050510 60%, #000000 100%);
    --card-bg-light: rgba(255, 255, 255, 0.95);
    --card-bg-dark: rgba(15, 15, 25, 0.9);
    --text-primary-light: #1a1a2e;
    --text-primary-dark: #f0f0f0;
    --text-secondary-light: #6c757d;
    --text-secondary-dark: #b0b0b0;
    --border-light: rgba(102, 126, 234, 0.3);
    --border-dark: rgba(102, 126, 234, 0.4);
    --shadow-light: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-success: #28a745;
    --glow-color: rgba(102, 126, 234, 0.6);
    --glow-dark: rgba(139, 154, 255, 0.4);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease;
}

/* Login Form Transitions */
#password-form,
#fingerprint-form {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#password-form.d-none,
#fingerprint-form.d-none {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#password-form.d-block,
#fingerprint-form.d-block {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Animated Background Container */
.hyperdimensional-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .hyperdimensional-container {
    background: var(--bg-dark);
}

/* Modern Animated Background with Particles */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.animated-text {
    position: absolute;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: floatTextModern 30s infinite linear;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    will-change: transform, opacity;
    filter: blur(1px);
    font-family: 'Arial Black', sans-serif;
}

/* Multiple animated text instances with varied animations and colors */
.animated-text:nth-child(1) {
    top: 8%;
    animation: floatTextModern 35s infinite linear;
    animation-delay: 0s;
    color: rgba(102, 126, 234, 0.25);
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.animated-text:nth-child(2) {
    top: 28%;
    animation: floatTextModern 40s infinite linear;
    animation-delay: -10s;
    color: rgba(0, 191, 255, 0.22);
    font-size: clamp(2rem, 5.5vw, 5rem);
    text-shadow: 0 0 40px rgba(0, 191, 255, 0.3);
}

.animated-text:nth-child(3) {
    top: 48%;
    animation: floatTextModern 45s infinite linear;
    animation-delay: -20s;
    color: rgba(46, 213, 115, 0.23);
    font-size: clamp(1.9rem, 5.25vw, 4.75rem);
    text-shadow: 0 0 40px rgba(46, 213, 115, 0.3);
}

.animated-text:nth-child(4) {
    top: 68%;
    animation: floatTextModern 38s infinite linear;
    animation-delay: -25s;
    color: rgba(255, 107, 107, 0.24);
    font-size: clamp(2.1rem, 5.75vw, 5.25rem);
    text-shadow: 0 0 40px rgba(255, 107, 107, 0.3);
}

.animated-text:nth-child(5) {
    top: 18%;
    animation: floatTextModernReverse 42s infinite linear;
    animation-delay: -15s;
    color: rgba(255, 159, 64, 0.25);
    font-size: clamp(1.8rem, 4.75vw, 4.25rem);
    text-shadow: 0 0 40px rgba(255, 159, 64, 0.3);
}

.animated-text:nth-child(6) {
    top: 58%;
    animation: floatTextModernReverse 36s infinite linear;
    animation-delay: -30s;
    color: rgba(156, 136, 255, 0.22);
    font-size: clamp(2.05rem, 5.5vw, 4.9rem);
    text-shadow: 0 0 40px rgba(156, 136, 255, 0.3);
}

/* Dark mode text colors - mixed vibrant colors */
body.dark-mode .animated-text:nth-child(1) {
    color: rgba(139, 154, 255, 0.2);
    text-shadow: 0 0 60px rgba(102, 126, 234, 0.4);
}

body.dark-mode .animated-text:nth-child(2) {
    color: rgba(0, 230, 255, 0.18);
    text-shadow: 0 0 60px rgba(0, 191, 255, 0.35);
}

body.dark-mode .animated-text:nth-child(3) {
    color: rgba(46, 213, 115, 0.19);
    text-shadow: 0 0 60px rgba(46, 213, 115, 0.35);
}

body.dark-mode .animated-text:nth-child(4) {
    color: rgba(255, 107, 107, 0.2);
    text-shadow: 0 0 60px rgba(255, 107, 107, 0.35);
}

body.dark-mode .animated-text:nth-child(5) {
    color: rgba(255, 184, 77, 0.21);
    text-shadow: 0 0 60px rgba(255, 159, 64, 0.4);
}

body.dark-mode .animated-text:nth-child(6) {
    color: rgba(167, 139, 250, 0.18);
    text-shadow: 0 0 60px rgba(156, 136, 255, 0.35);
}

/* Modern Floating Animation */
@keyframes floatTextModern {
    0% {
        transform: translateX(-120%) translateY(0) rotate(-5deg) scale(0.8);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    25% {
        transform: translateX(30vw) translateY(-25px) rotate(2deg) scale(1);
    }
    50% {
        transform: translateX(50vw) translateY(-45px) rotate(5deg) scale(1.1);
    }
    75% {
        transform: translateX(70vw) translateY(-25px) rotate(2deg) scale(1);
    }
    92% {
        opacity: 1;
    }
    100% {
        transform: translateX(220%) translateY(0) rotate(-5deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatTextModernReverse {
    0% {
        transform: translateX(220%) translateY(0) rotate(5deg) scale(0.8);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    25% {
        transform: translateX(70vw) translateY(-25px) rotate(-2deg) scale(1);
    }
    50% {
        transform: translateX(50vw) translateY(-45px) rotate(-5deg) scale(1.1);
    }
    75% {
        transform: translateX(30vw) translateY(-25px) rotate(-2deg) scale(1);
    }
    92% {
        opacity: 1;
    }
    100% {
        transform: translateX(-120%) translateY(0) rotate(5deg) scale(0.8);
        opacity: 0;
    }
}

/* Professional Animated Symbols */
.animated-symbol {
    position: absolute;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: rgba(102, 126, 234, 0.15);
    animation: floatSymbol 25s infinite linear;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
    filter: blur(0.5px);
    z-index: 1;
}

.animated-symbol i {
    display: block;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.2);
}

/* Multiple symbol instances with varied positions, animations, and mixed colors */
.animated-symbol:nth-child(7) {
    top: 12%;
    left: 10%;
    animation: floatSymbol 30s infinite linear;
    animation-delay: 0s;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgba(102, 126, 234, 0.25);
}

.animated-symbol:nth-child(7) i {
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.animated-symbol:nth-child(8) {
    top: 35%;
    left: 15%;
    animation: floatSymbolReverse 35s infinite linear;
    animation-delay: -5s;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    color: rgba(0, 191, 255, 0.22);
}

.animated-symbol:nth-child(8) i {
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.35);
}

.animated-symbol:nth-child(9) {
    top: 55%;
    left: 8%;
    animation: floatSymbol 28s infinite linear;
    animation-delay: -10s;
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    color: rgba(46, 213, 115, 0.23);
}

.animated-symbol:nth-child(9) i {
    text-shadow: 0 0 30px rgba(46, 213, 115, 0.35);
}

.animated-symbol:nth-child(10) {
    top: 75%;
    left: 12%;
    animation: floatSymbolReverse 32s infinite linear;
    animation-delay: -15s;
    font-size: clamp(2.3rem, 4.8vw, 4rem);
    color: rgba(255, 107, 107, 0.24);
}

.animated-symbol:nth-child(10) i {
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.35);
}

.animated-symbol:nth-child(11) {
    top: 20%;
    right: 10%;
    animation: floatSymbolReverse 33s infinite linear;
    animation-delay: -8s;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgba(255, 159, 64, 0.25);
}

.animated-symbol:nth-child(11) i {
    text-shadow: 0 0 30px rgba(255, 159, 64, 0.4);
}

.animated-symbol:nth-child(12) {
    top: 42%;
    right: 15%;
    animation: floatSymbol 29s infinite linear;
    animation-delay: -12s;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    color: rgba(156, 136, 255, 0.22);
}

.animated-symbol:nth-child(12) i {
    text-shadow: 0 0 30px rgba(156, 136, 255, 0.35);
}

.animated-symbol:nth-child(13) {
    top: 62%;
    right: 8%;
    animation: floatSymbolReverse 31s infinite linear;
    animation-delay: -18s;
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    color: rgba(255, 206, 84, 0.23);
}

.animated-symbol:nth-child(13) i {
    text-shadow: 0 0 30px rgba(255, 206, 84, 0.35);
}

.animated-symbol:nth-child(14) {
    top: 80%;
    right: 12%;
    animation: floatSymbol 27s infinite linear;
    animation-delay: -22s;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    color: rgba(0, 230, 255, 0.21);
}

.animated-symbol:nth-child(14) i {
    text-shadow: 0 0 30px rgba(0, 230, 255, 0.35);
}

.animated-symbol:nth-child(15) {
    top: 28%;
    left: 50%;
    animation: floatSymbolVertical 26s infinite linear;
    animation-delay: -7s;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgba(255, 119, 198, 0.24);
}

.animated-symbol:nth-child(15) i {
    text-shadow: 0 0 30px rgba(255, 119, 198, 0.35);
}

.animated-symbol:nth-child(16) {
    top: 65%;
    left: 50%;
    animation: floatSymbolVerticalReverse 34s infinite linear;
    animation-delay: -20s;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    color: rgba(118, 75, 162, 0.22);
}

.animated-symbol:nth-child(16) i {
    text-shadow: 0 0 30px rgba(118, 75, 162, 0.35);
}

/* Dark mode symbol colors - mixed vibrant colors */
body.dark-mode .animated-symbol:nth-child(7) {
    color: rgba(139, 154, 255, 0.18);
}

body.dark-mode .animated-symbol:nth-child(7) i {
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.4);
}

body.dark-mode .animated-symbol:nth-child(8) {
    color: rgba(0, 230, 255, 0.16);
}

body.dark-mode .animated-symbol:nth-child(8) i {
    text-shadow: 0 0 40px rgba(0, 191, 255, 0.4);
}

body.dark-mode .animated-symbol:nth-child(9) {
    color: rgba(46, 213, 115, 0.17);
}

body.dark-mode .animated-symbol:nth-child(9) i {
    text-shadow: 0 0 40px rgba(46, 213, 115, 0.4);
}

body.dark-mode .animated-symbol:nth-child(10) {
    color: rgba(255, 107, 107, 0.18);
}

body.dark-mode .animated-symbol:nth-child(10) i {
    text-shadow: 0 0 40px rgba(255, 107, 107, 0.4);
}

body.dark-mode .animated-symbol:nth-child(11) {
    color: rgba(255, 184, 77, 0.19);
}

body.dark-mode .animated-symbol:nth-child(11) i {
    text-shadow: 0 0 40px rgba(255, 159, 64, 0.45);
}

body.dark-mode .animated-symbol:nth-child(12) {
    color: rgba(167, 139, 250, 0.16);
}

body.dark-mode .animated-symbol:nth-child(12) i {
    text-shadow: 0 0 40px rgba(156, 136, 255, 0.4);
}

body.dark-mode .animated-symbol:nth-child(13) {
    color: rgba(255, 206, 84, 0.17);
}

body.dark-mode .animated-symbol:nth-child(13) i {
    text-shadow: 0 0 40px rgba(255, 206, 84, 0.4);
}

body.dark-mode .animated-symbol:nth-child(14) {
    color: rgba(0, 230, 255, 0.15);
}

body.dark-mode .animated-symbol:nth-child(14) i {
    text-shadow: 0 0 40px rgba(0, 230, 255, 0.4);
}

body.dark-mode .animated-symbol:nth-child(15) {
    color: rgba(255, 119, 198, 0.18);
}

body.dark-mode .animated-symbol:nth-child(15) i {
    text-shadow: 0 0 40px rgba(255, 119, 198, 0.4);
}

body.dark-mode .animated-symbol:nth-child(16) {
    color: rgba(167, 139, 250, 0.16);
}

body.dark-mode .animated-symbol:nth-child(16) i {
    text-shadow: 0 0 40px rgba(118, 75, 162, 0.4);
}

/* Symbol Animation Keyframes */
@keyframes floatSymbol {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1);
    }
    50% {
        transform: translateY(-60px) translateX(40px) rotate(180deg) scale(1.2);
    }
    75% {
        transform: translateY(-30px) translateX(20px) rotate(270deg) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatSymbolReverse {
    0% {
        transform: translateY(0) translateX(0) rotate(360deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(-30px) translateX(-20px) rotate(270deg) scale(1);
    }
    50% {
        transform: translateY(-60px) translateX(-40px) rotate(180deg) scale(1.2);
    }
    75% {
        transform: translateY(-30px) translateX(-20px) rotate(90deg) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatSymbolVertical {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(30px) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(0) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatSymbolVerticalReverse {
    0% {
        transform: translateY(-100vh) translateX(0) rotate(360deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(100px) translateX(-30px) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

/* Modern Glassmorphism Portal Content */
.portal-content {
    width: 100%;
    max-width: 480px;
    padding: 3rem;
    background: var(--card-bg-light);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px var(--shadow-light),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 80px var(--glow-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeInUpModern 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.portal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

body.dark-mode .portal-content {
    background: var(--card-bg-dark);
    box-shadow: 
        0 20px 60px var(--shadow-dark),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        0 0 80px var(--glow-dark);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.portal-content.active {
    opacity: 1;
    transform: translateY(0);
}

.portal-content:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 30px 80px var(--shadow-light),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 100px var(--glow-color);
}

body.dark-mode .portal-content:hover {
    box-shadow: 
        0 30px 80px var(--shadow-dark),
        0 0 0 1px rgba(102, 126, 234, 0.4),
        0 0 100px var(--glow-dark);
}

/* Modern Fade In Animation */
@keyframes fadeInUpModern {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Modern Typography */
.portal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary-light);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftModern 4s ease infinite;
    background-size: 200% 200%;
    letter-spacing: -0.02em;
    position: relative;
}

body.dark-mode .portal-content h2 {
    background: linear-gradient(135deg, #8b9aff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.portal-content h3 {
    color: var(--text-primary-light);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

body.dark-mode .portal-content h3 {
    color: var(--text-primary-dark);
}

/* Modern Error & Success Messages */
.error-message {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.95), rgba(245, 198, 203, 0.95));
    color: #721c24;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 198, 203, 0.8);
    text-align: center;
    animation: slideDownShake 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(248, 215, 218, 0.4);
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: slideRight 2s infinite;
}

@keyframes slideRight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

body.dark-mode .error-message {
    background: linear-gradient(135deg, rgba(139, 69, 69, 0.4), rgba(120, 50, 50, 0.4));
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

@keyframes slideDownShake {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-message {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.95), rgba(195, 230, 203, 0.95));
    color: #155724;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(195, 230, 203, 0.8);
    text-align: center;
    animation: slideDownModern 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(212, 237, 218, 0.4);
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-message.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: slideRight 2s infinite;
}

body.dark-mode .success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3), rgba(30, 130, 50, 0.3));
    color: #6bcf7f;
    border-color: rgba(107, 207, 127, 0.4);
    box-shadow: 0 4px 20px rgba(107, 207, 127, 0.2);
}

@keyframes slideDownModern {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Fingerprint Status Messages */
.fingerprint-status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDownModern 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: pre-line;
    line-height: 1.6;
}

.fingerprint-status.info-message {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.fingerprint-status.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.fingerprint-status.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

body.dark-mode .fingerprint-status.info-message {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
}

body.dark-mode .fingerprint-status.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.25));
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
}

body.dark-mode .fingerprint-status.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.25));
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
}

/* Modern Form Controls */
.portal-content .form-control,
.quantum-input input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary-light);
    backdrop-filter: blur(10px);
    position: relative;
}

body.dark-mode .portal-content .form-control,
body.dark-mode .quantum-input input {
    background: rgba(40, 40, 60, 0.6);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.portal-content .form-control:focus,
.quantum-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px) scale(1.01);
    background: rgba(255, 255, 255, 0.95);
}

body.dark-mode .portal-content .form-control:focus,
body.dark-mode .quantum-input input:focus {
    background: rgba(50, 50, 70, 0.8);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.25),
        0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Quantum Input Style */
.quantum-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.quantum-input i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.quantum-input input {
    padding-left: 3.5rem;
}

.quantum-input:focus-within i {
    color: var(--accent-secondary);
    transform: translateY(-50%) scale(1.2);
}

.portal-content .form-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary-light);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

body.dark-mode .portal-content .form-select {
    background: rgba(40, 40, 60, 0.6);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9aff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.portal-content .form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

body.dark-mode .portal-content .form-select:focus {
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.25),
        0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Modern Button Styles */
.portal-content .btn,
.portal-content button[type="submit"] {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.4),
        0 0 0 0 rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

.portal-content .btn::before,
.portal-content button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.portal-content .btn:hover::before,
.portal-content button[type="submit"]:hover::before {
    width: 400px;
    height: 400px;
}

.portal-content .btn:hover,
.portal-content button[type="submit"]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.5),
        0 0 0 8px rgba(102, 126, 234, 0.1);
}

.portal-content .btn:active,
.portal-content button[type="submit"]:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s;
}

.portal-content .btn.w-100,
.portal-content button[type="submit"].w-100 {
    width: 100%;
}

.portal-content .btn-success {
    background: linear-gradient(135deg, var(--accent-success), #20c997);
    box-shadow: 
        0 4px 20px rgba(40, 167, 69, 0.4),
        0 0 0 0 rgba(40, 167, 69, 0.4);
}

.portal-content .btn-success:hover {
    box-shadow: 
        0 12px 40px rgba(40, 167, 69, 0.5),
        0 0 0 8px rgba(40, 167, 69, 0.1);
}

/* Icon Styles */
.icon-3em {
    font-size: 3.5em;
    display: block;
    animation: pulseModern 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

@keyframes pulseModern {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.5));
    }
}

.text-primary {
    color: var(--accent-primary) !important;
}

.text-success {
    color: var(--accent-success) !important;
}

.text-muted {
    color: var(--text-secondary-light) !important;
}

body.dark-mode .text-muted {
    color: var(--text-secondary-dark) !important;
}

/* Modern Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

body.dark-mode .dark-mode-toggle {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.d-inline-block {
    display: inline-block;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.w-auto {
    width: auto;
}

.small {
    font-size: 0.875rem;
}

/* Modern Link Styles */
.link-primary,
.portal-content a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
}

.link-primary::after,
.portal-content a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.link-primary:hover,
.portal-content a:hover {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

.link-primary:hover::after,
.portal-content a:hover::after {
    width: 100%;
}

body.dark-mode .link-primary,
body.dark-mode .portal-content a {
    color: #8b9aff;
}

body.dark-mode .link-primary:hover,
body.dark-mode .portal-content a:hover {
    color: #a78bfa;
}

/* Responsive Design */
@media (max-width: 576px) {
    .hyperdimensional-container {
        padding: 1rem;
    }
    
    .portal-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .portal-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .icon-3em {
        font-size: 2.8em;
    }
    
    .animated-text {
        font-size: 2rem;
    }
    
    .animated-text:nth-child(1),
    .animated-text:nth-child(2),
    .animated-text:nth-child(3),
    .animated-text:nth-child(4),
    .animated-text:nth-child(5),
    .animated-text:nth-child(6) {
        font-size: 2rem;
    }
    
    .animated-symbol {
        font-size: 1.5rem;
    }
    
    .animated-symbol:nth-child(7),
    .animated-symbol:nth-child(8),
    .animated-symbol:nth-child(9),
    .animated-symbol:nth-child(10),
    .animated-symbol:nth-child(11),
    .animated-symbol:nth-child(12),
    .animated-symbol:nth-child(13),
    .animated-symbol:nth-child(14),
    .animated-symbol:nth-child(15),
    .animated-symbol:nth-child(16) {
        font-size: 1.5rem;
    }
    
    .dark-mode-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        top: 16px;
        right: 16px;
    }
    
    .portal-content .btn,
    .portal-content button[type="submit"] {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Legacy Styles (for backward compatibility) */
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary-light);
}

body.dark-mode .logo-text {
    color: var(--text-primary-dark);
    }

.login-container {
    height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    background-color: #f8f9fa;
}

.login-box {
        width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--card-bg-light);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-light);
}

body.dark-mode .login-box {
    background: var(--card-bg-dark);
    box-shadow: 0 8px 32px var(--shadow-dark);
    }

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary-light);
}

body.dark-mode .login-box h2 {
    color: var(--text-primary-dark);
    }

.login-box .form-group {
    margin-bottom: 1rem;
}

.login-box .forgot-password {
        text-align: center;
    margin-top: 1rem;
    }
