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

:root {
    /* Light Mode Colors */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-blue: #0066ff;
    --accent-blue-light: #3399ff;
    --accent-blue-dark: #0052cc;
    --border-color: #e0e0e0;
    --input-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(0, 102, 255, 0.3);
}

body.dark-mode {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #3399ff;
    --accent-blue-light: #66b3ff;
    --accent-blue-dark: #0066ff;
    --border-color: #2a2f4a;
    --input-bg: #252a45;
    --shadow: rgba(0, 0, 0, 0.3);
    --glow-color: rgba(51, 153, 255, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

html {
}

/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

body.light-mode .login-box {
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* Logo Section */
.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.logo-innov {
    color: #c0c0c0;
    text-shadow: 
        0 0 10px rgba(192, 192, 192, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.logo-tech {
    color: var(--accent-blue);
    text-shadow: 
        0 0 20px var(--glow-color),
        0 0 40px var(--glow-color),
        0 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: relative;
}

.dark-mode .logo-tech {
    color: var(--accent-blue-light);
    text-shadow: 
        0 0 20px var(--glow-color),
        0 0 40px var(--glow-color),
        0 0 60px var(--glow-color),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 6px;
    position: relative;
    padding: 0 20px;
}

.tagline::before,
.tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    opacity: 0.6;
}

.tagline::before {
    left: 0;
}

.tagline::after {
    right: 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.welcome-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Form Styles */
.login-form {
    margin-top: 20px;
}

.login-error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

body.dark-mode .login-error {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

body.light-mode .form-group input {
    border-color: #cbd5e1;
    background: #ffffff;
}

.light-mode .form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--glow-color);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.forgot-password {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--accent-blue-dark);
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px var(--glow-color);
}

.login-button:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--glow-color);
}

.login-button:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--accent-blue-dark);
    text-decoration: underline;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    font-size: 16px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px var(--shadow);
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-box {
        padding: 18px 16px;
    }

    .logo {
        font-size: 24px;
    }

    .welcome-title {
        font-size: 14px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
    }
}

/* Animation for theme switch */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-box {
    animation: fadeIn 0.5s ease;
}







