/* Authentication Pages Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #F5D547;
    --yellow-light: #FFF9E6;
    --yellow-dark: #E5C537;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --background: #FFFFFF;
    --gray-100: #F7FAFC;
    --gray-200: #EDF2F7;
    --border-color: #E2E8F0;
    --error-color: #E53E3E;
    --success-color: #38A169;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Split Screen Layout */
.auth-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    min-height: 100vh;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: clamp(16px, 3vw, 32px);
    gap: clamp(16px, 4vw, 32px);
}

/* Left Side - Information Panel */
.auth-info {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    color: white;
    padding: clamp(32px, 6vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.auth-info-content {
    max-width: 480px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.auth-info h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.info-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    line-height: 1.6;
}

.benefits {
    margin-bottom: 48px;
}

.benefit {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.benefit-icon {
    flex-shrink: 0;
}

.benefit h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.benefit p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 48px;
}

.testimonial p {
    font-size: 16px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: white;
    font-size: 15px;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.helpful-facts--single {
    display: block;
    margin-top: 40px;
}

.helpful-facts--single .stat {
    text-align: left;
}

.helpful-facts--single .stat-value {
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.2;
    margin-bottom: 0;
    max-width: 100%;
}

/* Right Side - Form Panel */
.auth-form-container {
    background: var(--background);
    padding: clamp(32px, 6vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.auth-form-content {
    width: min(100%, 420px);
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Form Styles */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(245, 213, 71, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-hint {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 0;
}

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

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

.link:hover {
    color: var(--primary-yellow);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-yellow);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-submit:hover:not(:disabled) {
    background: var(--yellow-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 213, 71, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Messages */
.error-message {
    padding: 12px 16px;
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    font-size: 14px;
    margin-top: 16px;
}

.success-message {
    padding: 12px 16px;
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    color: var(--success-color);
    font-size: 14px;
    margin-top: 16px;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

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

.divider span {
    position: relative;
    background: var(--background);
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-light);
}

/* Social Auth */
.social-auth {
    margin-bottom: 24px;
}

.social-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: inherit;
}

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

/* Footer */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-info,
    .auth-form-container {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        padding: clamp(16px, 6vw, 24px);
    }

    .auth-info {
        display: none;
    }

    .auth-form-container {
        padding: clamp(24px, 8vw, 32px);
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    }

    .auth-info h1 {
        font-size: 28px;
    }

    .form-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 540px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-submit {
        font-size: 15px;
    }
}
