/* RESET & VARIABLES */
:root {
    --bg-dark: #0a0e27;
    --bg-darker: #050714;
    --primary: #00ffff;
    --secondary: #ff00ff;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    height: var(--navbar-height);
}

.logo {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.cta-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* LOGIN CONTAINER */
.login-container {
    margin-top: var(--navbar-height);
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
    flex: 1;
}

.login-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.login-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.5), rgba(255, 0, 255, 0.2));
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-dark);
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
}

.login-box h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FORM STYLES */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: -5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--secondary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-submit {
    padding: 15px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    padding: 0 15px;
}

/* SOCIAL LOGIN */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.social-btn.google:hover {
    border-color: #4285f4;
}

.social-btn.facebook:hover {
    border-color: #1877f2;
}

.social-btn i {
    font-size: 1.2rem;
}

/* SIGNUP LINK */
.signup-link {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: var(--secondary);
}

/* FOOTER */
footer {
    background: var(--bg-darker);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 30px;
    max-width: 1200px;
    padding: 0 20px;
}

.brand h4 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin-bottom: 10px;
    color: #fff;
}

.brand h4 span {
    color: var(--primary);
}

.brand p {
    color: #888;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: white;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.socials a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: #555;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        min-height: 300px;
        max-height: 40vh;
    }
    
    .login-right {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .nav-btn {
        display: none;
    }
    
    .login-box {
        padding: 30px 25px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    /* Nav actions (CTA buttons to the right) */
    .nav-actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
    }
    
    .form-group input {
        padding: 12px 15px;
    }
}