/* Login page specific styles - BRIGHT THEME */
.login-page-wrapper {
    font-family: 'Inter', sans-serif;
}

.login-page-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated background overlay - BRIGHT Theme */
.login-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #f5f7fa, #e9ecef, #dee2e6, #ced4da);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    z-index: -1;
}

/* Add a subtle light overlay for depth */
.login-bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

/* Bubble Animation Particles - BRIGHT THEME */
.login-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.2));
    border-radius: 50%;
    animation: bubbleFloat 12s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

/* Bubble floating animation */
@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-20vh) translateX(30px) scale(1.2);
        opacity: 0;
    }
}

/* Different bubble sizes with varying colors */
.bubble-small {
    animation-duration: 8s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.15));
}

.bubble-medium {
    animation-duration: 12s;
    background: radial-gradient(circle, rgba(168, 192, 255, 0.3), rgba(63, 43, 150, 0.12));
}

.bubble-large {
    animation-duration: 16s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.1));
}

@keyframes gradientFlow {
    0% { 
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 75%;
    }
    50% { 
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 25%;
    }
    100% { 
        background-position: 0% 50%;
    }
}

/* Main Container - Centered Form Box */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Box - BRIGHT theme */
.login-form-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.login-form-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

/* Tabs - BRIGHT Theme */
.login-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    padding-bottom: 12px;
}

.login-tab-btn {
    font-size: 18px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: #adb5bd;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.login-tab-btn.active {
    color: #667eea;
}

.login-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.login-tab-btn:hover:not(.active) {
    color: #6c757d;
}

/* Forms */
.login-form-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.login-form-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Groups - BRIGHT theme */
.login-form-group {
    margin-bottom: 24px;
}

.login-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(102, 126, 234, 0.2);
    border-radius: 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    background: white;
    color: #1a1a2e;
}

.login-form-group input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form-group input::placeholder {
    color: #adb5bd;
}

/* Checkbox - BRIGHT theme */
.login-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.login-checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.login-checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

/* Submit Button - Gradient with glow BRIGHT */
.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.login-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 ease;
}

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

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

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

.login-submit-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.login-submit-btn.loading .btn-text {
    opacity: 0;
}

.login-submit-btn.loading .btn-loader {
    display: flex;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 6px;
}

.loader-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Divider - BRIGHT theme */
.login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(102, 126, 234, 0.15);
}

.login-divider span {
    background: white;
    padding: 0 12px;
    position: relative;
    font-size: 12px;
    color: #adb5bd;
}

/* Footer Links - BRIGHT theme */
.login-footer-links {
    text-align: center;
    margin-top: 8px;
}

.login-footer-links a,
.login-footer-links label {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-footer-links a:hover,
.login-footer-links label:hover {
    color: #764ba2;
}

/* Error Message - BRIGHT theme */
.login-error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.login-error-message.show {
    display: block;
}

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

/* Google Button - BRIGHT Theme */
.google-login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    background: white;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

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

.google-login-btn:hover {
    background: #f8fafc;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.google-login-link {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 500px) {
    .login-form-box {
        padding: 32px 24px;
    }
    
    .login-tabs {
        gap: 24px;
    }
    
    .login-tab-btn {
        font-size: 16px;
    }
}