* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Light Theme */
body[data-theme="light"] {
    background: #f8fafc;
    color: #1a1a1a;
}

body[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .nav-link {
    color: rgba(26, 26, 26, 0.8);
}

body[data-theme="light"] .nav-link:hover,
body[data-theme="light"] .nav-link.active {
    color: #1a1a1a;
}

body[data-theme="light"] .search-input {
    background: rgba(26, 26, 26, 0.1);
    border: 1px solid rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
}

body[data-theme="light"] .search-input::placeholder {
    color: rgba(26, 26, 26, 0.6);
}

body[data-theme="light"] .search-icon {
    color: rgba(26, 26, 26, 0.6);
}

body[data-theme="light"] .login-btn {
    background: rgba(26, 26, 26, 0.1);
    color: #1a1a1a;
    border: 1px solid rgba(26, 26, 26, 0.2);
}

body[data-theme="light"] .login-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 26, 26, 0.1);
    min-height: 500px;
}

body[data-theme="light"] .login-title,
body[data-theme="light"] .welcome-message h2 {
    color: #1a1a1a;
}

body[data-theme="light"] .login-subtitle {
    color: rgba(26, 26, 26, 0.7);
}

body[data-theme="light"] .form-group label {
    color: rgba(26, 26, 26, 0.9);
}

body[data-theme="light"] .form-group input {
    background: rgba(26, 26, 26, 0.05);
    border: 1px solid rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
}

body[data-theme="light"] .form-group input::placeholder {
    color: rgba(26, 26, 26, 0.5);
}

body[data-theme="light"] .password-toggle {
    color: rgba(26, 26, 26, 0.6);
}

body[data-theme="light"] .demo-info {
    background: rgba(26, 26, 26, 0.05);
    border: 1px solid rgba(26, 26, 26, 0.1);
}

body[data-theme="light"] .demo-info p {
    color: rgba(26, 26, 26, 0.8);
}

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



.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    padding: 20px 0;
    position: relative;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo i {
    font-size: 28px;
    color: #a855f7;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 40px 10px 20px;
    color: white;
    width: 250px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.theme-toggle {
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

body[data-theme="light"] .theme-toggle {
    background: rgba(26, 26, 26, 0.1);
    border: 1px solid rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
}

body[data-theme="light"] .theme-toggle:hover {
    background: rgba(26, 26, 26, 0.2);
}

.login-btn,
.register-btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.register-btn {
    background: linear-gradient(135deg, #ffffff, #cccccc);
    color: #333333;
    border: none;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
    max-height: 100vh;
}

.login-container {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 40px;
    width: 100%;
    max-width: 420px;
    min-height: 500px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 28px;
    color: #a855f7;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.welcome-message {
    margin-bottom: 25px;
}

.welcome-message h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.login-form {
    text-align: left;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.register-link {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #ffffff;
}

.demo-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.demo-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
}

.demo-info p:first-child {
    margin-bottom: 15px;
    font-weight: 500;
}

.demo-info strong {
    color: #a855f7;
}

.back-to-home {
    margin-top: 30px;
}

.back-to-home a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-to-home a:hover {
    color: #a855f7;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 40px 15px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-section {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.footer-logo i {
    font-size: 20px;
    color: #a855f7;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 40px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-bottom-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
}

.footer-version {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.75rem;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-status {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.online-indicator {
    color: #10b981;
    font-size: 6px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Light theme footer */
body[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .footer-logo {
    color: #1a1a1a;
}

body[data-theme="light"] .footer-description {
    color: rgba(26, 26, 26, 0.7);
}

body[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .footer-copyright {
    color: rgba(26, 26, 26, 0.6);
}

body[data-theme="light"] .footer-version {
    color: rgba(26, 26, 26, 0.5);
    background: rgba(26, 26, 26, 0.1);
}

body[data-theme="light"] .footer-separator {
    color: rgba(26, 26, 26, 0.3);
}

body[data-theme="light"] .footer-status {
    color: rgba(26, 26, 26, 0.7);
}



/* Light Theme Styles */
body[data-theme="light"] .login-footer {
    color: rgba(26, 26, 26, 0.7);
}

body[data-theme="light"] .register-link {
    color: #7c3aed;
}

body[data-theme="light"] .register-link:hover {
    color: #1d4ed8;
}

body[data-theme="light"] .demo-info {
    background: rgba(26, 26, 26, 0.05);
    border: 1px solid rgba(26, 26, 26, 0.1);
}

body[data-theme="light"] .demo-info p {
    color: rgba(26, 26, 26, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .search-input {
        width: 200px;
    }
    
    .login-container {
        padding: 30px 25px;
        margin: 0 20px;
        min-height: 450px;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 10px;
    }
    
    .search-container {
        display: none;
    }
    
    .login-container {
        padding: 25px 18px;
        margin: 0 15px;
        min-height: 400px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0 20px;
    }
} 