* { box-sizing: border-box; }

html, body {
    height: 100vh; 
    margin: 0; 
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

:root {
    --light-blue: #4f9eff;
    --light-blue-hover: #3d8bff;
    --light-blue-active: #2e7bff;
}


.main-wrapper {
    display: flex; 
    width: 100vw; 
    height: 100vh;
    opacity: 0; 
    animation: fadeIn 0.6s ease-out forwards;
    align-items: stretch; 
}


.sidebar {
    width: 35%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem; 
    min-height: 100vh;
}


.login-container {
    width: 100%; 
    max-width: 400px; 
    background: transparent; 
    padding: 0; 
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%; 
    max-height: 98vh;
}


.login-header, .card-body, .card-footer {
    flex-shrink: 0;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 2.5rem 2rem 3rem 2rem !important; 
    gap: 1.5rem; 
}   


.login-header {
    padding: 2rem 2rem 1.75rem 2rem;
    background: rgba(79, 158, 255, 0.02);
    text-align: center;
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
}

.logo-container { 
    margin: 0 0 1rem 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.neu-logo {
    width: 76px; 
    height: 76px; 
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(79, 158, 255, 0.2);
    transition: all 0.3s ease;
}

.neu-logo:hover { 
    transform: scale(1.05); 
}

.logo-text {
    background: linear-gradient(135deg, var(--light-blue), var(--light-blue-hover));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.65rem; 
    margin: 0.5rem 0 0.375rem 0; 
    font-weight: 800; 
    line-height: 1.2;
}

.subtitle { 
    margin: 0; 
    font-size: 0.92rem; 
    color: #6c757d; 
    font-weight: 500;
}


.form-title {
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #2c3e50;
    margin: 0 0 2rem 0; 
    text-align: center; 
    line-height: 1.3;
}

.form-group { 
    margin-bottom: 1.5rem !important; 
    width: 100%;
}


.input-wrapper { position: relative; }
.input-field { 
    position: relative; 
    height: 54px; 
}

.input-icon {
    position: absolute; 
    left: 1.25rem; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 2; 
    font-size: 1.08rem;
    color: #adb5bd;
}

.toggle-pass {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s ease;
    border-radius: 50%;
}

.toggle-pass:hover {
    background: rgba(0,0,0,0.08);
}


.image-area {
    flex: 1; position: relative;
    background: linear-gradient(rgba(79, 158, 255, 0.12), rgba(79, 158, 255, 0.06)),
                url('./477579626_122108352272743934_80451274266931311_n.jpg') center/cover;
}

.overlay {
    position: absolute; inset: 0; 
    background: rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.welcome-text { 
    text-align: center; 
    color: white; 
    max-width: 550px;
    position: relative;
    z-index: 3;
}

.welcome-title {
    font-size: 1.9rem; 
    font-weight: 600; 
    margin: 0 0 1rem 0;
    letter-spacing: 1.5px;
    color: #ffffff;
    position: relative;
    animation: subtleGlow 3s ease-in-out infinite alternate, fadeInUp 0.8s ease-out 0.1s both;
    
    
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.9),
        0 0 50px rgba(79, 158, 255, 0.9),
        0 0 80px rgba(79, 158, 255, 0.7),
        0 0 120px rgba(79, 158, 255, 0.5),
        0 4px 30px rgba(0, 0, 0, 0.6);
}

@keyframes subtleGlow {
    0% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.9),
            0 0 50px rgba(79, 158, 255, 0.9),
            0 0 80px rgba(79, 158, 255, 0.7),
            0 0 120px rgba(79, 158, 255, 0.5),
            0 4px 30px rgba(0, 0, 0, 0.6);
    }
    100% {
        text-shadow: 
            0 0 25px rgba(255, 255, 255, 1),
            0 0 45px rgba(255, 255, 255, 1),
            0 0 80px rgba(79, 158, 255, 1),
            0 0 120px rgba(79, 158, 255, 0.9),
            0 0 180px rgba(79, 158, 255, 0.7),
            0 6px 40px rgba(0, 0, 0, 0.7);
    }
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        #4f9eff, 
        var(--light-blue),
        #4f9eff,
        transparent);
    border-radius: 2px;
    box-shadow: 
        0 0 20px rgba(79, 158, 255, 0.9),
        0 0 40px rgba(79, 158, 255, 0.7);
    animation: underlineGlow 2.5s ease-in-out infinite alternate;
}

@keyframes underlineGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(79, 158, 255, 0.8),
            0 0 40px rgba(79, 158, 255, 0.6); 
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(79, 158, 255, 1),
            0 0 60px rgba(79, 158, 255, 0.9); 
    }
}

.welcome-subtitle {
    font-size: 4.2rem; 
    font-weight: 800; 
    margin: 0 0 1.5rem 0;
    line-height: 1;
    letter-spacing: -1.8px;
    color: #ffffff;
    position: relative;
    animation: titleGlow 2.8s ease-in-out infinite alternate, fadeInUp 0.8s ease-out 0.3s both;
    

    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.95),
        0 0 70px rgba(79, 158, 255, 1),
        0 0 120px rgba(79, 158, 255, 0.9),
        0 0 200px rgba(79, 158, 255, 0.7),
        0 8px 50px rgba(0, 0, 0, 0.8);
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 40px rgba(255, 255, 255, 0.95),
            0 0 70px rgba(79, 158, 255, 1),
            0 0 120px rgba(79, 158, 255, 0.9),
            0 0 200px rgba(79, 158, 255, 0.7),
            0 8px 50px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow: 
            0 0 35px rgba(255, 255, 255, 1),
            0 0 60px rgba(255, 255, 255, 1),
            0 0 110px rgba(79, 158, 255, 1),
            0 0 180px rgba(79, 158, 255, 1),
            0 0 300px rgba(79, 158, 255, 0.9),
            0 12px 70px rgba(0, 0, 0, 0.9);
        transform: translateY(-3px);
    }
}

.welcome-desc {
    font-size: 1.3rem; 
    margin: 2.5rem auto 0; 
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.8px;
    max-width: 450px;
    animation: descGlow 3.5s ease-in-out infinite alternate, fadeInUp 0.8s ease-out 0.5s both;
    

    text-shadow: 
        0 0 18px rgba(255, 255, 255, 1),
        0 0 35px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(79, 158, 255, 0.8),
        0 0 100px rgba(79, 158, 255, 0.6),
        0 6px 40px rgba(0, 0, 0, 0.7);
}

.form-control {
    width: 100% !important; 
    height: 54px !important;
    padding: 0 3.75rem 0 3.75rem !important;
    border: 2px solid #e9ecef !important;
    background: #fafbfc !important;
    border-radius: 16px !important;
    font-size: 0.98rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.form-control:focus {
    border-color: var(--light-blue) !important;
    box-shadow: 
        0 0 0 4px rgba(79, 158, 255, 0.12),
        0 8px 25px rgba(79, 158, 255, 0.2) !important;
    background: white !important;
    transform: translateY(-1px) !important;
}


.login-btn, .google-btn {
    width: 100% !important;
    height: 54px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 0 1.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.125rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}


.login-btn {
    background: linear-gradient(135deg, var(--light-blue), var(--light-blue-hover)) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(79, 158, 255, 0.35) !important;
    margin-bottom: 5px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.875rem !important;
}


.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--light-blue-hover), var(--light-blue-active)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 40px rgba(79, 158, 255, 0.45) !important;
}

.login-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    height: 100%;
}


.google-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #e9ecef !important;
    color: #1f2937 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 0.75rem !important; 
    padding: 0 1.75rem !important;width: 100% !important;
    margin-top: -15px !important;
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.8), 
        rgba(255,255,255,0.4),
        transparent);
    transition: left 0.6s ease;
}

.google-btn:hover::before {
    left: 100%;
}

.google-btn:hover {
    border-color: #4285f4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 16px 40px rgba(66, 133, 244, 0.3),
        0 8px 25px rgba(0,0,0,0.2) !important;
    color: #ffffff !important;
}



.google-btn .bi-google {
    background: conic-gradient(
        from 45deg at 50% 50%,
        #4285f4 0deg 110deg,
        #34a853 110deg 160deg,
        #fbbc05 160deg 220deg,
        #ea4335 220deg 280deg,
        #4285f4 280deg 360deg
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 20px !important;  
    height: 20px !important; 
    border-radius: 4px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important; 
    font-weight: 400 !important;  
    flex-shrink: 0 !important;
    box-shadow: none; 
    line-height: 1 !important;
    margin-right: 0.5rem !important; 
}


.google-btn span {
    flex: 1;
    text-align: center;
}



.divider {
    position: relative !important;
    text-align: center !important;
    margin: 1rem 0 1.5rem 0 !important; 
    height: 24px !important;
    width: 100% !important;
}

.divider::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(to right, transparent, #e9ecef, transparent) !important;
    transform: translateY(-50%) !important;
}

.divider-text {
    position: relative !important;
    background: #f8f9fa !important;
    padding: 0 1.75rem !important;
    color: #adb5bd !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
}


.auth-link {
    color: var(--light-blue) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 16px !important;
    background: rgba(79, 158, 255, 0.08) !important;
    border: 2px solid rgba(79, 158, 255, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    max-width: 200px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    
}

.auth-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(79, 158, 255, 0.15), 
        transparent);
    transition: left 0.5s ease;
}

.auth-link:hover {
    color: var(--light-blue-hover) !important;
    background: rgba(79, 158, 255, 0.15) !important;
    border-color: var(--light-blue-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(79, 158, 255, 0.3) !important;
}

.auth-link:hover::before {
    left: 100%;
}


.auth-text {
    color: #6c757d !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
}

.auth-links-container {
    margin-top: auto; 
    padding: 1.5rem 0 0 0; 
    display: flex;
    justify-content: center;
    gap: 1rem; 
}
.auth-links {
    margin-top: auto !important;
    padding: 2rem 0 1.5rem 0 !important; 
    display: none !important; 
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}


.card-footer {
    padding: 2rem 2rem 2.25rem 2rem !important;
    background: rgba(250, 251, 252, 0.7);
    border-radius: 0 0 20px 20px;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border-top: 1px solid rgba(233, 236, 239, 0.6) !important; 
}

.copyright-text {
    margin: 0 0 0.5rem 0 !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
}

.copyright-text i { 
    margin-right: 0.625rem !important; 
    color: var(--light-blue) !important; 
    font-size: 0.95rem !important;
}

.copyright-subtext { 
    margin: 0 !important; 
    font-size: 0.8rem !important; 
    color: #9ca3af !important; 
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}

.register-btn {
    flex: 1 !important;
    height: 54px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    background: linear-gradient(135deg, #10b981, #059669) !important; 
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 0 1.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.875rem !important;
    text-decoration: none !important;
}

.register-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.45) !important;
}

.register-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
}


.mode-switch-wrapper {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 0 !important; 
    display: flex !important;
    justify-content: center !important;
}
.mode-toggle {
    display: flex !important;
    background: rgba(233,236,239,0.9) !important;
    border-radius: 25px !important;
    padding: 0.5rem !important;
    gap: 0.5rem !important;
    height: 46px !important;
    width: 100% !important;
    max-width: 340px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.mode-btn {
    flex: 1 !important;
    border: none !important;
    padding: 0.8125rem 1rem !important;
    border-radius: 22px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    color: #6c757d !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--light-blue), var(--light-blue-hover)) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(79, 158, 255, 0.35) !important;
}


@media (max-width: 1200px) {
    .login-container { max-width: 380px; }
}

@media (max-width: 992px) {
    .sidebar { width: 42%; }
    .login-container { max-width: 380px; }
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
        padding: 1rem;
        align-items: center;
    }
    
    .sidebar { 
        width: 100%; 
        padding: 1.25rem;
        min-height: auto;
    }
    
    .image-area { display: none; }
    
    .login-container { 
        max-width: 100%; 
        height: auto;
        max-height: none;
    }
    
    .login-header, .card-footer {
        padding-left: 1.75rem !important;
        padding-right: 1.75rem !important;
        border-radius: 20px;
    }
    
    .card-body {
        padding: 1.75rem !important;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .login-header, .card-footer {
        padding: 1.5rem !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .logo-text { font-size: 1.5rem; }
    .form-title { font-size: 1.1rem; }
}






body.admin-mode-active {
    --admin-red: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    --admin-card-bg: rgba(255, 255, 255, 0.08);
    --admin-input-bg: rgba(255, 255, 255, 0.12);
    --admin-text: #ffffff;
    --admin-light-text: #fefefe;
    --admin-red-accent: #fecaca;
    --admin-red-glow: #f87171;
}


body.admin-mode-active .sidebar {
    background: var(--admin-red) !important;
}


body.admin-mode-active .login-container {
    background: var(--admin-card-bg) !important;
    backdrop-filter: blur(25px);
    border-radius: 20px;
}


body.admin-mode-active .login-header {
    background: transparent !important;
    border-radius: 20px 20px 0 0 !important;
}


body.admin-mode-active .logo-text {
    background: transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 1.75rem !important;
}

body.admin-mode-active .subtitle {
    color: var(--admin-light-text) !important;
    font-weight: 600 !important;
}


body.admin-mode-active .form-title {
    color: var(--admin-text) !important;
}

body.admin-mode-active .form-label {
    color: var(--admin-light-text) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

body.admin-mode-active .form-control {
    background: var(--admin-input-bg) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--admin-text) !important;
    backdrop-filter: blur(15px);
}

body.admin-mode-active .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.admin-mode-active .form-control:focus {
    border-color: var(--admin-red-glow) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.4) !important;
    transform: translateY(-1px) !important;
}

body.admin-mode-active .input-icon {
    color: var(--admin-light-text) !important;
}


body.admin-mode-active .login-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
}

body.admin-mode-active .login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px) !important;
}


body.admin-mode-active .btn-row .register-btn,
body.admin-mode-active .auth-links {
    display: none !important;
}


body.admin-mode-active .google-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--admin-text) !important;
    backdrop-filter: blur(15px);
}

body.admin-mode-active .google-btn:hover {
    border-color: var(--admin-red-glow) !important;
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.3) !important;
    color: var(--admin-text) !important;
}

body.admin-mode-active .google-btn .bi-google {
    filter: brightness(1.2) saturate(0.8) !important; 
}


body.admin-mode-active .mode-toggle {
    background: rgba(255, 255, 255, 0.15) !important;
}

body.admin-mode-active .mode-btn {
    color: var(--admin-light-text) !important;
}

body.admin-mode-active .mode-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
}


body.admin-mode-active .card-footer {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 0 20px 20px !important;
}

body.admin-mode-active .copyright-text {
    color: var(--admin-light-text) !important;
}

body.admin-mode-active .copyright-text i {
    color: var(--admin-red-accent) !important;
}

body.admin-mode-active .copyright-subtext {
    color: rgba(255, 255, 255, 0.8) !important;
}


body.admin-mode-active #formDivider {
    display: block !important;
}


@media (max-width: 768px) {
    body.admin-mode-active .login-container {
        border-radius: 16px;
    }
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}


#profileModal {
    display: none;  
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#profileModal .modal-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
}