/* Login Page Styles */

/* Page Setup */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-page .header-login {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.login-page .header-login .nav-link {
    color: var(--primary-color);
}

.login-page .header-login .nav-link:hover {
    color: var(--neon-blue);
    text-shadow: none;
}

.login-page .header-login .mobile-menu-toggle span {
    background: var(--primary-color);
}

/* Login Section */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 40px;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(30, 60, 114, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 82, 152, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(61, 109, 184, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Login Container */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-hard);
    position: relative;
    z-index: 2;
}

/* Left Side - Branding */
.login-branding {
    background: var(--primary-gradient);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.branding-ball {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: ballFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.branding-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.branding-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.branding-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.branding-feature i {
    font-size: 1.2rem;
    width: 24px;
}

.branding-feature span {
    font-weight: 500;
}

/* Right Side - Form */
.login-form-container {
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.login-header {
    margin-bottom: 32px;
    text-align: center;
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 1rem;
    color: #64748b;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: var(--neon-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}

.form-input:focus + .input-icon,
.form-input:focus ~ .input-icon {
    color: var(--neon-blue);
}

.input-wrapper .input-icon {
    pointer-events: none;
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Error Message */
.error-message {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 16px;
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

/* Custom Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #64748b;
}

.forgot-password-link {
    font-size: 0.9rem;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-error i {
    font-size: 1rem;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
}

/* Login Footer */
.login-footer {
    margin-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

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

.register-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer Adjustments */
.footer-login {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
}

.footer-login .footer-bottom {
    border-top: none;
    padding-top: 0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .login-branding {
        display: none;
    }

    .login-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 100px 1rem 30px;
    }

    .login-container {
        border-radius: 20px;
    }

    .login-form-container {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .login-page .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .login-page .nav-menu .nav-link {
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 24px 16px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-form {
        gap: 16px;
    }

    .form-input {
        padding: 12px 16px 12px 44px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}
