/* Login modal  static site (from frontend login-page.css) */
:root {
  --accent-rgb: 99, 102, 241;
  --aurora-primary: #6366f1;
  --aurora-primary-hover: #818cf8;
  --aurora-primary-active: #4f46e5;
  --aurora-primary-light: rgba(99, 102, 241, 0.12);
  --brand-primary: #6366f1;
  --bg-base: #0a0a0f;
  --bg-surface: #12121a;
  --bg-hover: #1a1a24;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.14);
  --divider-color: rgba(255, 255, 255, 0.06);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);
  --transition-fast: 0.2s ease;
}

.login-page {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.login-page.is-open { display: flex; }

.login-page::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.login-page__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.login-page__bg-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-page__bg-blob { position: absolute; border-radius: 50%; pointer-events: none; }

.login-page__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  width: min(100%, 1080px);
  min-height: min(560px, calc(100dvh - 48px));
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  background: var(--bg-surface);
}

.login-page__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.06) 0%, rgba(139, 92, 246, 0.03) 50%, rgba(0, 0, 0, 0.2) 100%);
  border-right: 1px solid var(--border-color);
}

.login-page__brand-logo-wrap {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.04) 70%);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.25), inset 0 0 24px rgba(var(--accent-rgb), 0.08);
}

.login-page__brand-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(var(--accent-rgb), 0.45));
}

.login-page__brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.login-page__brand-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
  font-weight: 600;
}

.login-page__brand-decoration { margin-top: 32px; display: flex; gap: 12px; align-items: center; }
.login-page__brand-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--aurora-primary), var(--aurora-primary-hover)); }
.login-page__brand-line { width: 40px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--aurora-primary), transparent); }

.login-page__form-col {
  padding: 44px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow-y: auto;
}

.login-page__form-heading { margin-bottom: 28px; }
.login-page__form-title { font-size: 22px; font-weight: 800; color: var(--text-primary); margin: 0 0 6px; }
.login-page__form-desc { font-size: 14px; color: var(--text-secondary); margin: 0; font-weight: 600; }

.login-page__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.login-page__close:hover {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text-primary);
}

.yz-form { display: flex; flex-direction: column; gap: 16px; }
.yz-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.yz-input-row {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.yz-input-row:focus-within {
  border-color: var(--aurora-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.yz-input-row__icon { width: 42px; display: grid; place-items: center; color: var(--text-tertiary); flex-shrink: 0; font-size: 14px; }
.yz-input-row input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 14px; padding-right: 12px; }
.yz-input-row input:focus { outline: none; }

.yz-captcha-row { display: flex; gap: 8px; align-items: center; }
.yz-captcha-row .yz-input-row { flex: 1; }

.login-page__captcha-box {
  width: 110px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-hover);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yz-form-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.yz-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex-wrap: wrap; }
.yz-check input { accent-color: var(--aurora-primary); }

.yz-link { background: none; border: 0; padding: 0; color: var(--aurora-primary); font-weight: 600; font-size: 13px; cursor: pointer; }
.yz-btn-primary { height: 44px; border: none; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--aurora-primary), var(--aurora-primary-hover)); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; transition: all var(--transition-fast); }
.yz-btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.yz-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.yz-btn-outline { height: 42px; border-radius: var(--radius-md); border: 1px solid var(--brand-primary); background: transparent; color: var(--brand-primary); font-weight: 600; cursor: pointer; width: 100%; }
.yz-btn-outline:hover { background: var(--aurora-primary-light); }
.yz-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; color: var(--text-tertiary); font-size: 12px; }
.yz-divider::before, .yz-divider::after { content: ''; flex: 1; height: 1px; background: var(--divider-color); }
.yz-msg { padding: 8px 10px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 4px; }
.yz-msg--ok { background: rgba(34, 197, 94, 0.12); color: #86efac; }
.yz-msg--err { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.yz-compact-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }

.yz-submodal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.yz-submodal.hidden { display: none !important; }

.yz-submodal__panel {
  width: min(100%, 460px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 22px 24px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.yz-submodal__panel--wide { width: min(100%, 680px); max-height: min(85vh, 760px); }
.yz-submodal__title { margin: 0 32px 16px 0; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.yz-submodal__body { font-size: 13px; line-height: 1.75; color: var(--text-secondary); max-height: 58vh; overflow-y: auto; padding-right: 6px; }
.yz-submodal__body h4 { margin: 16px 0 6px; color: var(--text-primary); font-size: 14px; }
.yz-submodal__body .legal-h2 { margin-top: 18px; font-size: 14px; }
.yz-submodal__body .legal-h3 { margin-top: 10px; font-size: 13px; color: var(--text-primary); }
.yz-submodal__body .legal-meta { margin-top: 16px; font-size: 12px; color: var(--text-tertiary); }
.yz-submodal__body strong { color: var(--text-primary); }

.service-modal__qr {
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

@media (max-width: 900px) {
  .login-page__shell { grid-template-columns: 1fr; max-width: 480px; }
  .login-page__brand { border-right: none; border-bottom: 1px solid var(--border-color); padding: 28px 24px; }
  .login-page__form-col { padding: 28px 24px 32px; }
}
