/* ═══════════════════════════════════════════════════════════
   AdRanker — login.css  |  Deep Ocean Teal Login Screen
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--t1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* decorative rings */
body::before {
  content: ''; position: fixed; top: -120px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(42,155,173,0.06); pointer-events: none;
}
body::after {
  content: ''; position: fixed; bottom: -80px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(212,165,14,0.04); pointer-events: none;
}
.lp { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 768px) { .lp { grid-template-columns: 52% 48%; } }

/* ── LEFT ── */
.lp-left {
  padding: clamp(32px,5vw,56px) clamp(28px,4vw,52px);
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}
.lp-brand { display: flex; align-items: center; gap: 11px; margin-bottom: auto; }
.lp-brand-mark { display: flex; gap: 5px; align-items: flex-end; }
.lp-brand-mark span { display: block; border-radius: 50%; }
.lp-brand-mark span:nth-child(1) { width: 8px; height: 8px; background: var(--rust); }
.lp-brand-mark span:nth-child(2) { width: 10px; height: 10px; background: var(--orange); margin-bottom: -1px; }
.lp-brand-mark span:nth-child(3) { width: 12px; height: 12px; background: var(--amber); margin-bottom: -3px; }
.lp-brand-name { font-family: var(--font-body); font-size: 1.1rem; font-weight: 800; color: var(--t1); letter-spacing: -.01em; }
.lp-brand-tag {
  font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--t3); background: var(--card); border-radius: 20px; padding: 3px 9px;
  border: 1px solid var(--border);
}
.lp-hero { margin-bottom: clamp(24px,3vw,40px); }
.lp-eyebrow {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 14px;
}
.lp-headline {
  font-family: var(--font-serif);
  font-size: clamp(26px,3.5vw,40px); color: var(--t1);
  line-height: 1.18; margin-bottom: 26px;
}
.lp-headline em { color: var(--amber); font-style: italic; }

/* proof card */
.lp-proof {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.lp-ring-wrap { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.lp-ring-wrap svg { width: 52px; height: 52px; }
.lp-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 17px; color: var(--t1);
}
.lp-proof-quote { font-size: .76rem; font-weight: 500; color: var(--t2); line-height: 1.6; margin-bottom: 4px; }
.lp-proof-src { font-size: .58rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }

/* stats */
.lp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.lp-stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 13px; padding: 13px; text-align: center;
}
.lp-stat-n { display: block; font-family: var(--font-serif); font-size: 1.8rem; color: var(--t1); line-height: 1; }
.lp-stat-l { display: block; font-size: .52rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); margin-top: 4px; line-height: 1.4; }

/* ── RIGHT ── */
.lp-right {
  background: rgba(255,255,255,0.02);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px,5vw,52px) clamp(24px,4vw,44px);
}
.lp-form-wrap {
  width: 100%; max-width: 340px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border2);
  border-radius: 22px; padding: 32px 28px;
  animation: form-rise .5s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes form-rise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.lp-panel { display: none; }
.lp-panel.active { display: block; animation: panel-in .2s ease both; }
@keyframes panel-in { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }

.lp-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--t1); margin-bottom: 3px; }
.lp-sub { font-size: .76rem; font-weight: 500; color: var(--t2); margin-bottom: 20px; }

/* Google btn */
.g-btn {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border2);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  color: var(--t1); margin-bottom: 14px;
  transition: background .18s, border-color .18s;
}
.g-btn:hover { background: rgba(255,255,255,0.13); border-color: var(--border2); }

/* divider */
.lp-div { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.lp-div span { flex: 1; height: 1px; background: var(--border); }
.lp-div em { font-style: normal; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }

/* fields */
.lp-field { margin-bottom: 12px; }
.lp-lbl { display: flex; justify-content: space-between; align-items: center; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-bottom: 6px; }
.lp-input {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-family: var(--font-body); font-size: .85rem; font-weight: 500;
  color: var(--t1); outline: none; -webkit-appearance: none;
  transition: border-color .18s, background .18s;
}
.lp-input:focus { border-color: var(--teal); background: rgba(42,155,173,0.06); }
.lp-input::placeholder { color: var(--t3); font-weight: 400; }

/* errors */
.lp-err {
  font-size: .78rem; font-weight: 600; color: #E07070;
  background: rgba(196,52,26,0.15); border-radius: 9px;
  padding: 9px 13px; margin: 3px 0 11px; display: none; line-height: 1.5;
  border: 1px solid rgba(196,52,26,0.2);
}
.lp-ok {
  font-size: .78rem; font-weight: 600; color: var(--sage);
  background: rgba(123,191,181,0.12); border-radius: 9px;
  padding: 9px 13px; margin-bottom: 11px; display: none;
  border: 1px solid rgba(123,191,181,0.2);
}

/* CTA */
.lp-btn {
  width: 100%; padding: 12px;
  background: var(--teal); color: #fff; border: none;
  border-radius: 13px; font-family: var(--font-body); font-size: .9rem; font-weight: 800;
  cursor: pointer; margin-top: 4px; letter-spacing: -.01em; position: relative;
  transition: background .18s, transform .12s;
}
.lp-btn:hover { background: #2DAEC2; transform: translateY(-1px); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn.busy { color: transparent !important; pointer-events: none; opacity: .7; }
.lp-btn.busy::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lp-link { color: var(--sage); cursor: pointer; font-weight: 700; text-decoration: none; }
.lp-switch { margin-top: 16px; font-size: .78rem; font-weight: 500; color: var(--t2); text-align: center; }
.lp-back { display: inline-flex; align-items: center; gap: 5px; font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t2); cursor: pointer; margin-bottom: 16px; transition: color .15s; }
.lp-back:hover { color: var(--t1); }
.lp-back::before { content: '←'; }

/* Terms footer */
.lp-terms { text-align: center; margin-top: 16px; font-size: .62rem; color: var(--t3); line-height: 1.7; }
.lp-terms a { color: var(--sage); text-decoration: none; }
.lp-terms a:hover { color: var(--sage2); }

/* error shake */
@keyframes clay-shake {
  0%,100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-6px) rotate(-.8deg); }
  40% { transform: translateX(5px) rotate(.8deg); }
  60% { transform: translateX(-4px) rotate(-.4deg); }
  80% { transform: translateX(3px) rotate(.4deg); }
}
.lp-btn.error-shake {
  animation: clay-shake .4s ease-in-out;
  box-shadow: 0 0 18px rgba(196,52,26,0.35);
}
#gis-mount, #gis-mount-2 { margin-bottom: 11px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.lp-input:focus-visible { outline: none; }
