/* Login Page Styles */

.login-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    min-height: 600px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Left Side - Logo */
.login-left {
    flex: 1;
    background: #0b0c22;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.logo-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.brand-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.brand-title-white {
    color: #E8F9FF;
    text-shadow: 0 0 15px rgba(232, 249, 255, 0.3);
}

.brand-title-gradient {
    background: linear-gradient(135deg, #00E5FF, #005BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Right Side - Login Form */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.4);
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Alert */
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #fca5a5;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--space-cyan);
}

.form-input {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    background: rgba(10, 14, 39, 0.8);
    border-color: var(--space-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

.field-error {
    color: #fca5a5;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Submit Button */
.btn-login-submit {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #7c3aed, #6d5dfc);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

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

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login-google:hover {
    border-color: rgba(248, 250, 252, 0.8);
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

.google-icon {
    display: inline-flex;
}

.google-icon svg {
    display: block;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.5));
}

.login-divider::after {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.5), transparent);
}

/* Responsive */
@media (max-width: 1024px) {
    .login-container {
        max-width: 900px;
    }
    
    .login-left,
    .login-right {
        padding: 2.5rem;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 1rem 0;
    }
    
    .login-container {
        flex-direction: column;
        min-height: auto;
        margin: 1rem;
    }

    .login-left {
        padding: 2rem 1.5rem;
        min-height: 200px;
    }

    .login-logo {
        width: 90px;
        margin-bottom: 1rem;
    }

    .brand-title {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }

    .brand-subtitle {
        font-size: 0.95rem;
    }

    .login-right {
        padding: 2rem 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }

    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .login-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .login-form {
        gap: 1.25rem;
    }
    
    .form-input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-login-submit {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .btn-login-google {
        padding: 0.8rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .social-login {
        gap: 0.65rem;
        margin-bottom: 1.25rem;
    }
    
    .login-divider {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .login-left {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }
    
    .login-logo {
        width: 70px;
        margin-bottom: 0.75rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .brand-subtitle {
        font-size: 0.875rem;
    }
    
    .login-right {
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.35rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.7rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn-login-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-login-google {
        padding: 0.75rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .login-divider {
        font-size: 0.8rem;
    }
}

/* Signup specific styles */
.consent-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--space-cyan);
}

.checkbox-label a {
    color: var(--space-cyan);
    text-decoration: none;
    transition: opacity 0.2s;
}

.checkbox-label a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.required {
    color: #fca5a5;
}

.form-help-text {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Login footer */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.login-footer p {
    margin: 0.5rem 0;
}

.login-footer a {
    color: var(--space-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.login-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.forgot-password-link {
    color: var(--space-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    display: inline-block;
}

.forgot-password-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.success-message {
    text-align: center;
    padding: 1rem 0;
}

