/* Login Page - Ultra Modern 2025 */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Floating particles effect */
.auth-container::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

.auth-card {
    max-width: 460px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-card .card {
    backdrop-filter: blur(30px) saturate(180%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #14b8a6, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Form styling with smooth transitions */
.auth-form {
    margin-top: 2rem;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .input-group input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 8px 16px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.625rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-300);
    transition: var(--transition);
    appearance: none;
    background: white;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
}

.btn-block {
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

/* Error message with icon */
.error-message {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    padding: 1.125rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    backdrop-filter: blur(10px);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message::before {
    content: '⚠';
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Tab styles (disabled but kept for consistency) */
.tab-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.375rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab:hover:not(.active) {
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.5);
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Additional footer text */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-hover);
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Loading animation for button */
.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

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

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 0;
    }

    .auth-card .card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.875rem;
    }

    .btn-block {
        padding: 0.875rem;
    }
}

/* Extra visual touches */
.auth-card .card::before {
    background: linear-gradient(135deg, #10b981, #14b8a6, #34d399);
    height: 4px;
}
