/* ===== AUTH PAGE FIXES ===== */
.auth-page {
    position: relative;
    min-height: 100vh;
    height: auto;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    padding: 20px;
    overflow-y: auto !important;
    display: block;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 90%;
    margin: 20px auto;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    min-height: auto;
    height: auto;
}

.left-panel, .right-panel {
    height: auto;
    min-height: 600px;
    overflow-y: auto;
}

/* New Account Section in Left Panel */
.new-account-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.new-account-card {
    text-align: center;
    color: white;
}

.new-account-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-300);
}

.new-account-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.new-account-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Create Account Section in Right Panel */
.create-account-section {
    margin: 2rem 0;
}

.create-account-card {
    background: linear-gradient(135deg, var(--success-50) 0%, var(--success-100) 100%);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--success-600);
}

.card-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--success-900);
    margin: 0;
}

.create-account-card p {
    color: var(--success-800);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-600) 0%, var(--success-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.card-note {
    display: block;
    margin-top: 0.75rem;
    color: var(--success-700);
    font-size: 0.8rem;
}

/* Scroll Fixes */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        margin: 10px auto;
    }
    
    .left-panel {
        display: none;
    }
    
    .right-panel {
        padding: 2rem;
        height: auto;
        min-height: auto;
    }
    
    .auth-page {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 10px auto;
        border-radius: var(--radius-lg);
    }
    
    .right-panel {
        padding: 1.5rem;
    }
    
    .create-account-card {
        padding: 1rem;
    }
}

/* Ensure all content is visible */
.form-container {
    max-height: none !important;
    overflow: visible !important;
}

/* Fix for form overflow */
.form {
    overflow: visible !important;
}

/* Mobile viewport fix */
@media (max-height: 700px) {
    .auth-page {
        min-height: 100%;
        height: auto;
    }
    
    .container {
        height: auto;
        min-height: auto;
    }
}