/* Auth Pages Styling */
:root {
    /* Enhanced color palette with modern AI-inspired colors */
    --auth-primary: #6366f1;
    --auth-secondary: #4cc9f0;
    --auth-tertiary: #8b5cf6;
    --auth-accent: #0ea5e9;
    --auth-gradient-start: #6366f1;
    --auth-gradient-end: #4cc9f0;
    --auth-error: #ef4444;
    --auth-success: #10b981;
    --auth-warning: #f59e0b;
    --auth-text: #f8fafc;
    --auth-text-secondary: rgba(248, 250, 252, 0.7);
    --auth-bg-dark: #0f172a;
    --auth-bg-light: #1e293b;
    --auth-panel: rgba(30, 41, 59, 0.7);
    --auth-dark: #141526;
    --auth-light: #f8f9fa;
    --auth-border-glow: rgba(99, 102, 241, 0.5);
}

/* Override any global styles for auth pages */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Futuristic background with AI-inspired pattern */
.auth-body {
    min-height: 100vh !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    background: radial-gradient(circle at 50% 50%, var(--auth-bg-light), var(--auth-bg-dark)) !important;
    background-size: 100% 100% !important;
    color: var(--auth-text) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 40px 0 !important;
}

/* Add AI-inspired network pattern overlay */
.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(76, 201, 240, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    opacity: 0.5;
    z-index: 0;
}

/* Improved particles container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Enhanced Auth Container with modern glass morphism */
.auth-container {
    position: relative !important;
    z-index: 10 !important;
    width: 95% !important;
    max-width: 450px !important;
    background: var(--auth-panel) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(99, 102, 241, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: visible !important;
    transform: translateZ(0) !important;
    margin: 40px 0 !important;
}

/* Add subtle glass reflection effect */
.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(-45deg);
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 10px;
}

.auth-logo img {
    max-width: 80px;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
    transition: all 0.3s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

/* Enhanced Header */
.auth-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.auth-header h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 5px !important;
    color: var(--auth-text) !important;
    position: relative !important;
    display: inline-block !important;
}

/* Add glowing underline effect */
.auth-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--auth-gradient-start), var(--auth-gradient-end));
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--auth-gradient-start);
}

.auth-header p {
    margin: 5px 0 0 !important;
    font-size: 0.95rem !important;
    color: var(--auth-text-secondary) !important;
    font-weight: 400 !important;
}

/* Form container */
.auth-form {
    position: relative;
}

/* Enhanced form group */
.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--auth-text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 8px;
    font-size: 1.1rem;
    color: var(--auth-text-secondary);
    transition: all 0.3s ease;
}

/* Enhanced styling for labels when input has value */
.form-group.with-value label {
    top: -10px !important;
    left: 12px !important;
    font-size: 0.8rem !important;
    background: var(--auth-bg-light) !important;
    padding: 0 8px !important;
    border-radius: 4px !important;
    color: var(--auth-tertiary) !important;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.2) !important;
    z-index: 10 !important;
}

.form-group.with-value label i {
    color: var(--auth-tertiary) !important;
    transform: scale(0.9) !important;
}

/* Enhanced input styles */
.form-group input {
    width: 100% !important;
    padding: 16px 15px !important;
    font-size: 0.95rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: var(--auth-text) !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.form-group input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Add focus border animation */
.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--auth-gradient-start), var(--auth-gradient-end));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Enhanced button styles */
.auth-button {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(45deg, var(--auth-gradient-start), var(--auth-gradient-end)) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.auth-button:active {
    transform: translateY(-1px);
}

.auth-button .button-icon {
    margin-left: 8px;
    transition: all 0.3s ease;
}

/* Enhanced remember me checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background-color: rgba(15, 23, 42, 0.6);
    position: relative;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.remember-me input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
}

.remember-me label {
    font-size: 0.9rem;
    color: var(--auth-text-secondary);
    cursor: pointer;
}

/* Enhanced alternative links */
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-text-secondary);
}

.auth-links a {
    color: var(--auth-tertiary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, var(--auth-gradient-start), var(--auth-gradient-end));
    transition: width 0.3s ease;
}

.auth-links a:hover {
    color: var(--auth-secondary);
}

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

/* Enhanced alert messages */
.auth-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.auth-alert.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--auth-success);
}

.auth-alert.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--auth-error);
}

.auth-alert.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--auth-warning);
}

/* Enhanced password strength meter */
.password-strength {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.password-strength .strength-meter {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: right;
    font-weight: 500;
}

/* Enhanced password toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--auth-text-secondary);
    transition: all 0.3s ease;
}

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

/* Divider with text */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--auth-text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
    margin-right: 15px;
}

.auth-divider::after {
    margin-left: 15px;
}

/* Social login buttons */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--auth-text);
}

.social-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--auth-tertiary);
    color: var(--auth-tertiary);
}

/* Enhance responsive styles */
@media (max-width: 768px) {
    .auth-container {
        width: 90% !important;
        padding: 25px !important;
        margin: 30px 0 !important;
    }
    
    .auth-header h1 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .auth-body {
        padding: 30px 0 !important;
    }
    
    .auth-container {
        width: 95% !important;
        padding: 20px !important;
        margin: 20px 0 !important;
    }
    
    .auth-header h1 {
        font-size: 1.6rem !important;
    }
    
    .form-group input {
        padding: 14px 12px !important;
    }
    
    .auth-button {
        padding: 14px !important;
    }
}

/* Create animation for form submission */
@keyframes formSubmit {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

.auth-form.submitting {
    animation: formSubmit 0.5s ease;
}

/* Enhanced loading spinner */
.auth-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.7s linear infinite;
    margin-right: 10px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--auth-text-secondary);
    font-size: 0.8rem;
    position: relative;
}

.auth-footer a {
    color: var(--auth-tertiary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Accessibility focus styles */
:focus-visible {
    outline: 2px solid var(--auth-tertiary);
    outline-offset: 2px;
}

/* Add subtle animations for form transitions */
.auth-form {
    transition: all 0.5s ease;
}

/* Hover effect for auth container */
.auth-container:hover {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 25px rgba(99, 102, 241, 0.25);
}

/* Improved placeholder text */
::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Auth content container */
.auth-content {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Remove scrollbar styling for auth-content since we won't need it */
.auth-content::-webkit-scrollbar,
.auth-content::-webkit-scrollbar-track,
.auth-content::-webkit-scrollbar-thumb,
.auth-content::-webkit-scrollbar-thumb:hover {
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--auth-text-secondary);
    font-size: 0.8rem;
    position: relative;
}

.auth-footer a {
    color: var(--auth-tertiary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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