/* AUTH MODAL — светлая тема в стиле лендинга */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 1rem; animation: authFadeIn 0.2s ease-out; }
.auth-container { width: 100%; max-width: 420px; padding: 32px 28px; background: #ffffff; border-radius: 24px; border: 0; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative; box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #0f172a; animation: authSlideUp 0.3s ease-out; max-height: 95vh; overflow-y: auto; }
.auth-container * { box-sizing: border-box; }
@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes authSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.close-btn { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; background: #f1f5f9; color: #64748b; font-size: 1.4rem; text-decoration: none; line-height: 1; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all .15s; cursor: pointer; }
.close-btn:hover { background: #e2e8f0; color: #0f172a; }
.back-arrow { position: absolute; top: 14px; left: 14px; width: 32px; height: 32px; border-radius: 8px; background: #f1f5f9; color: #64748b; font-size: 1.2rem; text-decoration: none; line-height: 1; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.back-arrow:hover { background: #e2e8f0; color: #0f172a; transform: translateX(-2px); }
.main-logo { display: block; margin: 0 auto 18px; height: 36px; width: auto; max-width: 200px; }
.auth-toggle { display: flex; width: 100%; background: #f1f5f9; border-radius: 12px; margin-bottom: 20px; padding: 4px; gap: 4px; border: 0; }
.toggle-btn { flex: 1; padding: 10px; text-align: center; color: #64748b; text-decoration: none; border-radius: 8px; font-weight: 600; transition: all .15s; font-size: 14px; }
.toggle-btn.active { background: #fff; color: #3f88c5; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.toggle-btn:not(.active):hover { color: #0f172a; }
.input-wrapper { position: relative; margin-bottom: 12px; width: 100%; }
.input-wrapper input { width: 100%; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; color: #0f172a; font-size: 15px; outline: none; transition: all .15s; margin: 0; font-family: inherit; }
.input-wrapper input:focus { border-color: #3f88c5; background: #fff; box-shadow: 0 0 0 3px rgba(63,136,197,0.1); }
.input-wrapper input::placeholder { color: #94a3b8; }
.eye-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; opacity: 0.5; background: none; border: none; color: #64748b; font-size: 1.1rem; padding: 0; }
.eye-btn:hover { opacity: 1; color: #3f88c5; }
.forgot-pass { text-align: right; margin-top: -4px; margin-bottom: 14px; }
.forgot-pass a { color: #3f88c5; font-size: 13px; text-decoration: none; transition: .15s; }
.forgot-pass a:hover { text-decoration: underline; }
.btn-submit { width: 100%; padding: 13px; background: linear-gradient(135deg, #3f88c5 0%, #a855f7 100%); color: #fff; font-size: 15px; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; transition: all .15s; margin: 8px 0 0 0; box-shadow: 0 4px 12px rgba(63,136,197,0.25); font-family: inherit; }
.btn-submit:hover { background: linear-gradient(135deg, #357abd 0%, #9333ea 100%); box-shadow: 0 6px 16px rgba(63,136,197,0.35); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.divider { margin: 22px 0 14px; color: #94a3b8; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px solid #e2e8f0; }
.alert { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; text-align: center; }
.success-msg { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; text-align: center; }
.vk-wrapper { width: 100%; border-radius: 10px; overflow: hidden; margin-top: 8px; }
#VkIdSdkOAuth { width: 100%; }
.form-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; color: #0f172a; text-align: center; }
