:root {
    --primary: #6366f1;
    --surface: #ffffff;
    --surface-dark: #1e1b4b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f8faff 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Main Card */
.auth-card {
    display: flex;
    width: 1400px;
    max-width: 95%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Left Panel */
.auth-banner {
    width: 400px;
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.auth-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.svg');
    opacity: 0.1;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-logo {
    margin-bottom: 4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.banner-text {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.banner-footer {
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Right Panel - Form */
.auth-form {
    flex: 1;
    padding: 2rem 3rem;
}

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

.form-title {
    font-size: 1.875rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    color: var(--text-secondary);
}

/* Social Login */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: white;
}

.btn-social:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Button */
.btn-auth {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-auth:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Links */
.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-card {
        flex-direction: column;
        max-width: 480px;
    }
    
    .auth-banner {
        padding: 2rem;
        text-align: center;
    }
    
    .auth-form {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-form {
        padding: 2rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* Additional Form Styles */
.form-group .helptext {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group ul.errorlist {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    color: #DC2626;
    font-size: 0.875rem;
}

/* Utility Classes */
.mt-4 {
    margin-top: 1.5rem;
} 

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.messages-container {
    width: 100%;
}

.messages-container .alert {
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.messages-container .alert:not(:last-child) {
    margin-bottom: 0.5rem;
}