/* Modern Auth Pages - Inspired by Modernize Template */
/* Clean, Premium Design with Yellow Branding */

:root {
    --primary: #FFDE59;
    --primary-dark: #FFD700;
    --primary-light: #FFE88C;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 600px;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
        opacity: 0.8; 
    }
}

.auth-left-content {
    position: relative;
    z-index: 1;
    color: var(--dark);
}

.auth-left h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-left p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 400px;
}

.auth-right {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

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

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

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

.auth-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-option-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.95rem;
}

.auth-option-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.auth-option-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--dark);
}

.social-login {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-1px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--gray-500);
    position: relative;
    font-size: 0.875rem;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--gray-900);
    font-family: inherit;
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 222, 89, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.remember-me label {
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 222, 89, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.signup-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-message {
    background: #FEE2E2;
    border: 2px solid #EF4444;
    color: #DC2626;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        width: 100%;
        min-height: 300px;
        padding: 2rem;
    }
    
    .auth-right {
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .auth-left {
        padding: 3rem 2rem;
        min-height: 300px;
    }

    .auth-left h1 {
        font-size: 2rem;
    }

    .auth-left p {
        font-size: 1rem;
    }

    .auth-right {
        padding: 3rem 2rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .auth-options,
    .social-login {
        flex-direction: column;
    }

    .auth-option-btn,
    .social-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }
    
    .auth-left,
    .auth-right {
        padding: 2rem 1.5rem;
    }
    
    .auth-left h1 {
        font-size: 1.75rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-auth {
        padding: 0.875rem 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    animation: fadeIn 0.5s ease-out;
}
