* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; font-size: 14px; }

/* Auth Page Base */
.auth_page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #142f59; }
.auth_page__split { background: #1e293b; }

/* Split Layout */
.auth_split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; width: 100%; }
.auth_split__left { display: flex; align-items: center; justify-content: center; padding: 40px; background: #1e293b; }
.auth_split__right { display: flex; align-items: center; justify-content: center; padding: 40px; background: #142f59; }

/* Form Container */
.auth_form_container { width: 100%; max-width: 400px; }

/* Title */
.auth_title { font-size: 28px; font-weight: 700; color: #ffffff; margin-bottom: 12px; }
.auth_subtitle { font-size: 14px; color: #94a3b8; margin-bottom: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.15s ease; }
.btn__primary { background: #142f59; color: #ffffff; }
.btn__primary:hover { background: #1e3a6e; }
.btn__gold { background: #fbbf24; color: #000000; }
.btn__gold:hover { background: #fbbf24; color: #ffffff; }
.btn__google { background: #ffffff; color: #1f1f1f; border: 1px solid #747775; font-weight: 500; }
.btn__google:hover { background: #f8f9fa; }
.btn__google svg { flex-shrink: 0; }
.btn__block { width: 100%; }
.btn__oauth { font-size: 16px; padding: 14px 24px; }

/* Divider */
.auth_divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: #64748b; font-size: 13px; }
.auth_divider::before, .auth_divider::after { content: ''; flex: 1; height: 1px; background: #334155; }

/* Form */
.auth_form { display: flex; flex-direction: column; }
.form_group { margin-bottom: 16px; }
.form_label { display: block; font-size: 14px; font-weight: 500; color: #e2e8f0; margin-bottom: 8px; }
.form_input { width: 100%; height: 44px; padding: 0 14px; font-size: 14px; color: #e2e8f0; background: #0f172a; border: 1px solid #334155; border-radius: 8px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.form_input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.form_input::placeholder { color: #64748b; }

/* Password Toggle */
.input_password { position: relative; width: 100%; }
.input_password .form_input { padding-right: 44px; }
.input_password .toggle_visibility { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 42px; border: none; border-radius: 0 8px 8px 0; background: #0f172a; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.input_password .toggle_visibility svg { width: 20px; height: 20px; stroke: #94a3b8; }
.input_password .toggle_visibility svg:last-child { display: none; }
.input_password .toggle_visibility:hover svg { stroke: #e2e8f0; }
.input_password input[type="text"] + .toggle_visibility svg:first-child { display: none; }
.input_password input[type="text"] + .toggle_visibility svg:last-child { display: block; }

/* Form Row */
.form_row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }

/* Checkbox */
.form_checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #94a3b8; cursor: pointer; }
.form_checkbox input { width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer; }

/* Links */
.form_link { font-size: 14px; color: #3b82f6; text-decoration: none; }
.form_link:hover { text-decoration: underline; }

/* Auth Footer */
.auth_footer { text-align: center; margin-top: 24px; font-size: 14px; color: #94a3b8; }
.auth_footer a { color: #3b82f6; text-decoration: none; font-weight: 500; }
.auth_footer a:hover { text-decoration: underline; }

/* Error Message */
.auth_error { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }

/* Success Message */
.auth_success { background: rgba(34, 197, 94, 0.1); border: 1px solid #22c55e; color: #22c55e; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }

/* Promo Panel */
.auth_promo { max-width: 480px; text-align: center; }

.auth_promo__logo { display: flex; align-items: center; justify-content: center; margin-bottom: 48px; }
.auth_promo__logo img { max-width: 240px; height: auto; }

.auth_promo__image { position: relative; margin-bottom: 40px; }
.auth_promo__placeholder { background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 60px 80px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.3); }

.auth_promo__badge { position: absolute; bottom: -20px; right: 20px; background: #1e293b; border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }
.auth_promo__badge svg { color: #fbbf24; }
.auth_promo__badge_text { text-align: left; }
.auth_promo__badge_text span { display: block; font-size: 11px; color: #fbbf24; }
.auth_promo__badge_text strong { display: block; font-size: 14px; font-weight: 600; color: #fbbf24; }

.auth_promo__title { font-size: 32px; font-weight: 700; color: #ffffff; margin-bottom: 16px; }
.auth_promo__desc { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; margin-bottom: 32px; }

.auth_promo__dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth_promo__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.auth_promo__dots span.active { width: 24px; border-radius: 12px; background: #fbbf24; }

/* Loading Spinner */
.loading_spinner { width: 24px; height: 24px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Callback Page */
.auth_callback { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
.auth_callback__spinner { width: 48px; height: 48px; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: #ffffff; border-radius: 50%; animation: spin 1s linear infinite; }
.auth_callback__message { margin-top: 24px; font-size: 18px; color: rgba(255, 255, 255, 0.9); }

/* Input Suffix */
.input_suffix { display: flex; align-items: center; }
.input_suffix .form_input { border-radius: 8px 0 0 8px; }
.input_suffix .suffix { height: 44px; padding: 0 14px; display: flex; align-items: center; background: #334155; color: #94a3b8; font-size: 14px; border: 1px solid #334155; border-left: none; border-radius: 0 8px 8px 0; }

/* Responsive */
@media (max-width: 900px) {
    .auth_split { grid-template-columns: 1fr; }
    .auth_split__right { display: none; }
    .auth_split__left { padding: 24px; }
}
