/* ===================================
   MODERN AUTH INTERFACE - GREEN THEME
   =================================== */

/* FORCE CSS LOADING TEST */
.auth-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, rgba(34, 197, 94, 0.05) 100%) !important;
    min-height: 100vh !important;
    display: block !important;
}

:root {
    --auth-green-primary: #22c55e;
    --auth-green-secondary: #16a34a;
    --auth-green-tertiary: #15803d;
    --auth-green-dark: #166534;
    --auth-green-light: #f0fdf4;
    --auth-green-50: rgba(34, 197, 94, 0.05);
    --auth-green-100: rgba(34, 197, 94, 0.1);
    --auth-green-200: rgba(34, 197, 94, 0.2);
    --auth-green-300: rgba(34, 197, 94, 0.3);
    --auth-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --auth-shadow-green: 0 25px 50px -12px rgba(34, 197, 94, 0.25);
}

/* Reset and Base Styles */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--auth-green-light) 0%, #ffffff 50%, var(--auth-green-50) 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, var(--auth-green-100) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, var(--auth-green-50) 0%, transparent 50%);
    animation: authFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes authFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5%, -5%) rotate(1deg); }
    50% { transform: translate(5%, -10%) rotate(-1deg); }
    75% { transform: translate(-10%, 5%) rotate(1deg); }
}

/* Main Layout */
.auth-split-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left Side - Visual */
.auth-visual-side {
    flex: 1;
    background: linear-gradient(135deg, var(--auth-green-primary) 0%, var(--auth-green-secondary) 50%, var(--auth-green-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-visual-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-visual-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 500px;
    padding: 2rem;
}

.auth-visual-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: authPulse 3s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

.auth-visual-icon i {
    font-size: 3rem;
    color: white;
}

.auth-visual-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auth-visual-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-visual-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-feature-item i {
    color: rgba(255, 255, 255, 0.9);
}

/* Right Side - Form */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
    padding: 3rem 2rem;
    position: relative;
}

/* Form Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--auth-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-green-primary) 0%, var(--auth-green-secondary) 50%, var(--auth-green-tertiary) 100%);
}

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

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--auth-green-primary) 0%, var(--auth-green-secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--auth-shadow-green);
    animation: authBounce 2s ease-in-out infinite;
}

@keyframes authBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.auth-logo i {
    font-size: 2rem;
    color: white;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--auth-green-primary);
    box-shadow: 0 0 0 3px var(--auth-green-100);
    transform: translateY(-2px);
}

.auth-form-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-form-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Input with Icons */
.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
}

.auth-input-group .auth-form-input {
    padding-left: 3rem;
}

.auth-input-group .auth-form-input:focus + .auth-input-icon {
    color: var(--auth-green-primary);
}

/* Password Toggle */
.auth-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

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

/* Checkbox */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.auth-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.auth-checkbox input:checked + .auth-checkbox-checkmark {
    background: var(--auth-green-primary);
    border-color: var(--auth-green-primary);
}

.auth-checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-checkbox-checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-checkbox input:checked + .auth-checkbox-checkmark::after {
    opacity: 1;
}

.auth-checkbox-label {
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-green-primary) 0%, var(--auth-green-secondary) 100%);
    color: white;
    box-shadow: var(--auth-shadow-green);
}

.auth-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -12px rgba(34, 197, 94, 0.4);
}

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

.auth-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.auth-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading State */
.auth-btn-loading {
    position: relative;
    color: transparent !important;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: authSpin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes authSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 2rem;
}

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

.auth-link:hover {
    color: var(--auth-green-secondary);
    text-decoration: none;
}

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

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

/* Divider */
.auth-divider {
    margin: 2rem 0;
    text-align: center;
    position: relative;
    color: #9ca3af;
    font-size: 0.875rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Social Buttons */
.auth-social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-social-btn:hover {
    border-color: var(--auth-green-primary);
    color: var(--auth-green-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* Error Messages */
.auth-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    animation: authShake 0.5s ease-in-out;
}

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

/* Success Messages */
.auth-success {
    background: linear-gradient(135deg, var(--auth-green-light) 0%, #dcfce7 100%);
    border: 1px solid var(--auth-green-primary);
    color: var(--auth-green-dark);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: authSlideIn 0.5s ease-out;
}

@keyframes authSlideIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Password Strength Indicator */
.auth-password-strength {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.auth-strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.auth-strength-bar.weak { background: #ef4444; }
.auth-strength-bar.medium { background: #f59e0b; }
.auth-strength-bar.strong { background: var(--auth-green-primary); }

/* Progress Steps */
.auth-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.auth-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-step.active {
    background: var(--auth-green-primary);
    color: white;
    transform: scale(1.1);
}

.auth-step.completed {
    background: var(--auth-green-secondary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-split-layout {
        flex-direction: column;
    }
    
    .auth-visual-side {
        min-height: 40vh;
        padding: 2rem 1rem;
    }
    
    .auth-visual-title {
        font-size: 2rem;
    }
    
    .auth-visual-features {
        gap: 1rem;
    }
    
    .auth-feature-item {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .auth-form-container {
        padding: 2rem 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-social-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-container::before {
        display: none;
    }
    
    .auth-visual-icon {
        width: 80px;
        height: 80px;
    }
    
    .auth-visual-icon i {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    
    .auth-logo i {
        font-size: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Accessibility */
.auth-form-input:focus,
.auth-btn:focus,
.auth-social-btn:focus {
    outline: 3px solid var(--auth-green-100);
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-container {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    }
    
    .auth-form-side {
        background: rgba(15, 23, 42, 0.95);
    }
    
    .auth-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .auth-title {
        color: #f8fafc;
    }
    
    .auth-subtitle {
        color: #cbd5e1;
    }
    
    .auth-form-label {
        color: #e2e8f0;
    }
    
    .auth-form-input {
        background: rgba(51, 65, 85, 0.8);
        border-color: #475569;
        color: #f8fafc;
    }
    
    .auth-form-input::placeholder {
        color: #94a3b8;
    }
}

/* Animation Delays for Staggered Effects */
.auth-form-group:nth-child(1) { animation-delay: 0.1s; }
.auth-form-group:nth-child(2) { animation-delay: 0.2s; }
.auth-form-group:nth-child(3) { animation-delay: 0.3s; }
.auth-form-group:nth-child(4) { animation-delay: 0.4s; }

/* Fade In Animation */
.auth-fade-in {
    animation: authFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes authFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
