:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07142c;
  color: #0f172a;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, .45), transparent 34%),
    radial-gradient(circle at 80% 75%, rgba(14, 165, 233, .2), transparent 38%),
    linear-gradient(145deg, #07142c 0%, #132b5e 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.brand-panel > * { position: relative; z-index: 1; }
.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 50px rgba(234, 88, 12, .3);
  font-weight: 900;
  font-size: 22px;
}
.eyebrow { margin: 30px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #93c5fd; }
.eyebrow.dark { margin-top: 0; color: #2563eb; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.04em; }
.brand-copy { max-width: 620px; margin: 20px 0 26px; color: #dbeafe; line-height: 1.7; }
.brand-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: #bfdbfe; }
.brand-panel li::before { content: "✓"; color: #fbbf24; font-weight: 900; margin-right: 10px; }

.form-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f8fafc;
}
.form-card { width: min(100%, 760px); max-height: calc(100vh - 48px); overflow: auto; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: white; border: 1px solid #e2e8f0; box-shadow: 0 24px 70px rgba(15, 23, 42, .12); }
.login-panel[hidden] { display: none !important; }
.login-tabs { margin-bottom: 28px; padding: 5px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; border-radius: 12px; background: #eff6ff; }
.login-tabs .tab-button { margin: 0; padding: 10px 8px; color: #475569; background: transparent; border: 0; border-radius: 9px; font-size: 12px; }
.login-tabs .tab-button.active { color: white; background: linear-gradient(135deg, #1d4ed8, #4f46e5); box-shadow: 0 6px 16px rgba(37,99,235,.2); }
.back-button { margin: 0 0 22px; padding: 9px 12px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 12px; }
.information-panel { position: fixed; inset: 0; z-index: 100; overflow: auto; padding: 0; color: #0f172a; background: #f4f7fb; }
.public-page-open { overflow: hidden; }
.public-page-shell { min-height: 100%; }
.public-page-header { position: sticky; top: 0; z-index: 2; min-height: 76px; padding: 12px clamp(20px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; background: linear-gradient(135deg,#07142c,#173b7a); box-shadow: 0 5px 20px rgba(15,23,42,.18); }
.public-page-header > div { display: flex; align-items: center; gap: 12px; }
.public-page-header strong { font-size: 18px; }
.brand-mark.small { width: 42px; height: 42px; border-radius: 11px; font-size: 15px; }
.public-page-header .back-button { margin: 0; color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.public-page-content { width: min(1180px,calc(100% - 36px)); margin: 0 auto; padding: clamp(36px,6vw,76px) 0 70px; }
.public-page-content > h2 { font-size: clamp(30px,4vw,48px); }
.public-page-content > .subtitle { max-width: 850px; font-size: 16px; }
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature-groups article { padding: 22px; border: 1px solid #dbeafe; border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.feature-groups h3, .plan-card h3 { margin: 0 0 7px; color: #172554; font-size: 14px; }
.feature-groups p, .plan-card p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.privacy-note, .subscription-note { margin-top: 16px; padding: 13px 14px; border: 1px solid #bae6fd; border-radius: 11px; color: #0c4a6e; background: #f0f9ff; font-size: 12px; line-height: 1.55; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.plan-card { padding: 28px 24px; border: 1px solid #dbe3ee; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(15,23,42,.07); }
.plan-card.featured { border-color: #6366f1; background: #eef2ff; box-shadow: 0 10px 25px rgba(79,70,229,.13); }
.plan-period { display: inline-flex; margin-bottom: 12px; padding: 5px 8px; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.plan-price { margin: 12px 0 5px !important; color: #0f172a !important; font-size: 17px !important; font-weight: 900; }
.plan-card a { margin-top: 15px; display: block; padding: 10px; border-radius: 9px; color: white; background: #1d4ed8; text-align: center; text-decoration: none; font-size: 11px; font-weight: 900; }
.payment-box { margin-top: 22px; padding: 20px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border-radius: 15px; color: #172554; background: #dbeafe; }
.payment-box span { color: #334155; font-size: 13px; }
.payment-box a { padding: 10px 13px; border-radius: 9px; color: white; background: #16a34a; text-decoration: none; font-size: 12px; font-weight: 900; }
h2 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.subtitle { margin: 10px 0 28px; color: #64748b; line-height: 1.55; }
form { display: grid; gap: 10px; }
label { margin-top: 8px; font-size: 12px; font-weight: 800; color: #334155; text-transform: uppercase; letter-spacing: .04em; }
input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 13px 14px; font: inherit; outline: none; background: #fff; }
input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
button { margin-top: 16px; border: 0; border-radius: 10px; padding: 14px 18px; color: white; background: linear-gradient(135deg, #1d4ed8, #4f46e5); font: inherit; font-weight: 800; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.notice { margin-bottom: 18px; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.notice.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.support { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e2e8f0; display: grid; gap: 7px; font-size: 12px; color: #64748b; }
.support a { color: #1d4ed8; font-weight: 800; text-decoration: none; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 330px; padding: 38px 28px; }
  .brand-panel ul { display: none; }
  .form-panel { padding: 22px; }
  .form-card { max-height: none; }
  .plans-grid, .feature-groups { grid-template-columns: 1fr; }
  .login-tabs { grid-template-columns: 1fr; }
  .public-page-header { align-items: stretch; flex-direction: column; }
  .public-page-header .back-button { width: 100%; }
  .payment-box { grid-template-columns: 1fr; }
}
