:root {
    --auth-primary: #ea580c;
    --auth-primary-hover: #c2410c;
    --auth-secondary: #0c4a4e;
    --auth-dark: #0f172a;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-white: #ffffff;
    --auth-success: #059669;
    --auth-error: #dc2626;
    --auth-bg-light: #f1f5f9;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--auth-bg-light); height: 100vh; overflow: hidden; }

.auth-wrapper { display: flex; height: 100vh; width: 100%; padding: 20px; }
.auth-form-side { width: 40%; min-width: 480px; background: var(--auth-white); border-radius: 30px; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; z-index: 10; overflow-y: auto; }
.auth-graphic-side { flex: 1; background: var(--auth-secondary); border-radius: 30px; margin-left: 20px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; overflow: hidden; }
.auth-graphic-side::before { content: ''; position: absolute; width: 100%; height: 100%; background-image: radial-gradient(rgba(255,255,255,0.05) 1.5px, transparent 1.5px); background-size: 30px 30px; }

.brand-container { margin-bottom: 30px; }
.logo-area { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.auth-logo-img { max-height: 40px; width: auto; }
.brand-icon-fallback { font-size: 1.5rem; color: var(--auth-primary); }
.brand-text-fallback { color: var(--auth-dark); font-weight: 800; font-size: 1.2rem; }

.form-wrapper { width: 100%; max-width: 380px; display: flex; flex-direction: column; }
.page-title { font-size: 1.8rem; font-weight: 800; color: var(--auth-dark); margin-bottom: 8px; }
.page-sub { font-size: 0.9rem; color: var(--auth-text-muted); margin-bottom: 25px; line-height: 1.5; }

.auth-nav-toggle { display: flex; background: var(--auth-bg-light); padding: 6px; border-radius: 12px; margin-bottom: 25px; }
.auth-nav-toggle .nav-item { flex: 1; text-align: center; padding: 10px; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--auth-text-muted); border-radius: 8px; }
.auth-nav-toggle .nav-item.active { background: var(--auth-white); color: var(--auth-dark); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.input-group { margin-bottom: 15px; width: 100%; }
.label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--auth-dark); margin-bottom: 6px; }
.input-icon-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-leading { position: absolute; left: 16px; color: var(--auth-text-muted); pointer-events: none; font-size: 1rem; z-index: 5; }
.input { width: 100%; height: 48px; padding: 12px 42px 12px 44px; border: 1px solid var(--auth-border); border-radius: 12px; font-size: 0.9rem; background: #fcfcfc; transition: 0.2s; position: relative; z-index: 1; }
.input:focus { outline: none; border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1); }
.toggle-password { position: absolute; right: 15px; color: var(--auth-text-muted); cursor: pointer; font-size: 1rem; transition: color 0.2s; z-index: 5; }
.toggle-password:hover { color: var(--auth-primary); }

.form-actions-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding: 0 2px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--auth-text-muted); cursor: pointer; }
.checkbox-input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--auth-secondary); }
.link-forgot { font-size: 0.85rem; color: var(--auth-secondary); text-decoration: none; font-weight: 600; }
.link-forgot:hover { color: var(--auth-primary); text-decoration: underline; }

.captcha-section { margin-top: 10px; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-img { height: 48px; border-radius: 12px; cursor: pointer; border: 1px solid var(--auth-border); transition: 0.3s; }
.captcha-img:hover { border-color: var(--auth-primary); }
.captcha-input-small { width: 150px !important; padding-left: 15px !important; padding-right: 15px !important; text-align: center; font-weight: 800; letter-spacing: 1px; }
.btn-refresh-captcha { width: 48px; height: 48px; background: var(--auth-bg-light); border: 1px solid var(--auth-border); border-radius: 12px; color: var(--auth-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: 0.3s; }
.btn-refresh-captcha:hover { background: var(--auth-secondary); color: #fff; }

.alert-error, .alert-success { padding: 12px; border-radius: 10px; margin-bottom: 20px; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
.alert-error { background: #fef2f2; color: var(--auth-error); border-color: #fee2e2; }
.alert-success { background: #ecfdf5; color: var(--auth-success); border-color: #d1fae5; }

.btn-primary-auth { width: 100%; padding: 14px; background: var(--auth-secondary); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: 0.3s; display: block; text-align: center; text-decoration: none; }
.btn-primary-auth:hover { background: var(--auth-primary); transform: translateY(-2px); }

.divider { display: flex; align-items: center; margin: 25px 0 15px; color: var(--auth-text-muted); font-size: 0.75rem; font-weight: 600; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); }
.divider span { padding: 0 15px; }

.social-auth-grid { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
.btn-social-item { width: 50px; height: 50px; border: 1px solid var(--auth-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--auth-white); transition: 0.2s; text-decoration: none; font-size: 1.2rem; }
.btn-social-item:hover { border-color: var(--auth-primary); transform: translateY(-3px); }
.brand-fb-color { color: #1877F2; }
.brand-x-color { color: #000; }

.success-header { margin-bottom: 25px; }
.success-icon-wrapper, .success-icon-wrapper-alt { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; border-radius: 20px; margin-bottom: 25px; }
.success-icon-wrapper { background: #eff6ff; color: #2563eb; }
.success-icon-wrapper-alt { background: #ecfdf5; color: var(--auth-success); }
.verify-action-block { margin-top: 10px; border-top: 1px solid var(--auth-bg-light); padding-top: 20px; }
.logout-link-btn { background: none; border: none; color: var(--auth-text-muted); font-size: 0.85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.password-strength-meter { display: flex; gap: 4px; margin-top: 8px; }
.strength-segment { height: 4px; flex: 1; background: #e2e8f0; border-radius: 10px; }
.strength-segment.weak { background: #ef4444; }
.strength-segment.medium { background: #f59e0b; }
.strength-segment.strong { background: var(--auth-primary); }

.slideshow-container { width: 100%; position: relative; z-index: 5; text-align: center; color: #fff; }
.auth-slide { display: none; animation: fadeIn 0.8s ease-out; }
.auth-slide.active { display: block; }
.slide-icon-box { width: 60px; height: 60px; background: var(--auth-primary); color: #fff; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 20px; }
.slide-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.slide-desc { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 500px; margin: 0 auto; }
.mockup-visual { position: relative; height: 350px; width: 100%; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; }

.builder-window { width: 460px; height: 300px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4); display: flex; flex-direction: column; animation: float 6s infinite ease-in-out; }
.window-header { padding: 10px 15px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.window-body { flex: 1; display: flex; }
.builder-sidebar { width: 40px; background: #0f172a; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.side-item { height: 20px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.builder-canvas { flex: 1; padding: 20px; position: relative; background: #f1f5f9; }
.canvas-block { background: #fff; border: 2px dashed var(--auth-primary); border-radius: 8px; padding: 15px; display: flex; gap: 15px; }
.block-img { width: 60px; height: 60px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.ai-gen-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--auth-primary); color: #fff; padding: 10px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; box-shadow: 0 10px 20px rgba(234, 88, 12, 0.4); display: flex; align-items: center; gap: 10px; }

.browser-mockup { width: 440px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4); animation: float 6s infinite ease-in-out; }
.browser-bar { padding: 12px 20px; background: #f1f5f9; display: flex; align-items: center; gap: 15px; color: #64748b; font-size: 0.85rem; font-weight: 600; }
.browser-content { padding: 40px; text-align: center; }
.domain-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-weight: 800; font-size: 0.9rem; }
.accent-badge { background: #fff7ed; color: var(--auth-primary); border: 1px solid #ffedd5; }
.brand-success-color { color: var(--auth-success); }
.mock-line { height: 8px; background: #e2e8f0; border-radius: 10px; margin: 0 auto; }
.line-75 { width: 75%; margin-top: 25px; margin-bottom: 10px; }
.line-60 { width: 60%; }
.line-50 { width: 50%; }

.slider-dots { position: absolute; bottom: 30px; display: flex; gap: 12px; }
.dot { width: 40px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; cursor: pointer; }
.dot.active { background: #fff; }

.footer-copyright { margin-top: 30px; padding-top: 20px; font-size: 0.75rem; color: var(--auth-text-muted); text-align: center; border-top: 1px solid #f1f5f9; }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: var(--auth-secondary); text-decoration: none; font-weight: 600; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) { .auth-graphic-side { display: none; } .auth-form-side { width: 100%; border-radius: 0; padding: 20px; } }