/* ===== LOGIN PAGE SPECIFIC STYLES ===== */
.login-page {
    overflow-x: hidden;
    position: relative;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Override particles container for login page */
.login-page .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.login-page .bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ===== LEFT PANEL - FORMS ===== */
.forms-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    min-height: 100vh;
}

.forms-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    margin: 1rem 0;
}

.brand-header {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.brand-tagline {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Form switching buttons */
.form-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.switch-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #cccccc;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.switch-btn.active {
    color: #000;
}

.switch-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.switch-indicator.register {
    transform: translateX(100%);
}

/* Form styles */
.form-container {
    position: relative;
    min-height: 650px;
}

.auth-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.auth-form.hidden {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

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

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00ffff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ff00ff;
}

.forgot-password {
    text-align: right;
    margin-bottom: 2rem;
}

.forgot-password a {
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

.social-login {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-login-text {
    text-align: center;
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-btn {
    flex: 1;
    padding: 1rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

/* ===== RIGHT PANEL - VISUAL ===== */
.visual-panel {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-content {
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 10;
}

.visual-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.visual-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.features-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: #00ffff;
}

.feature-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* Background decorations */
.visual-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,255,255,0.3)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    animation: floatingShapes 15s infinite linear;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes floatingShapes {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading .submit-btn {
    background: #666;
}

.loading .submit-btn::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .visual-panel {
        display: none;
    }

    .forms-panel {
        padding: 2rem 1rem;
        min-height: 100vh;
        align-items: flex-start;
        overflow: hidden;
        padding-top: 2rem;
    }

    .forms-container {
        max-width: 100%;
        margin: 0;
    }

    .form-container {
        min-height: auto;
    }

    .auth-form {
        position: static;
    }

    .auth-form.hidden {
        display: none;
    }

    .social-login {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .visual-title {
        font-size: 2rem;
    }

    .features-preview {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .social-btn {
        padding: 1rem;
    }
}