:root {
  --bg:       #0b0d10;
  --bg-2:     #14181d;
  --card:     #1a1f26;
  --line:     #2a313a;
  --line-2:   #1f242c;
  --text:     #e6e9ee;
  --text-dim: #98a1ad;
  --text-mute:#6b7480;
  --accent:   #7c5cff;
  --accent-d: #6346ff;
  --good:     #25d3a3;
  --danger:   #ef4444;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); }

.brand-mark {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--good));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 24px;
  box-shadow: 0 10px 40px rgba(124, 92, 255, 0.3);
}

.privly-form-area {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
  box-sizing: border-box;
}
.layout-centered .privly-form-area,
.layout-fullbleed .privly-form-area {
  align-items: center;
  gap: 18px;
}

.form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.field {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.field::placeholder { color: var(--text-mute); }
.field:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
.field-row { position: relative; }
.field-row .forgot {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-mute); text-decoration: none;
}
.field-row .forgot:hover { color: var(--text); }

.btn-primary {
  background: var(--accent); color: #fff; border: none;
  padding: 12px 14px; border-radius: 10px;
  font-weight: 500; font-size: 14px; cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary:hover { background: var(--accent-d); }
.btn-primary:active { transform: translateY(1px); }

.btn-google {
  background: #fff; color: #1f2937; border: 1px solid #fff;
  padding: 11px 14px; border-radius: 10px;
  font-weight: 500; font-size: 14px; cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-google:hover { background: #f3f4f6; }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0;
  color: var(--text-mute); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.invite-hint {
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}
.invite-hint strong { color: var(--text); font-weight: 500; }

.error-banner {
  width: 100%;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  color: #fda4af;
  font-size: 13px;
}

.success-banner {
  width: 100%;
  padding: 10px 14px;
  background: rgba(37, 211, 163, 0.08);
  border: 1px solid rgba(37, 211, 163, 0.4);
  border-radius: 10px;
  color: var(--good);
  font-size: 13px;
}

/* =================== LAYOUT 1: CENTERED CARD =================== */
.layout-centered {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(124, 92, 255, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.centered-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.centered-card h1 {
  font-size: 26px; font-weight: 600;
  margin: 6px 0 0;
  letter-spacing: -0.02em;
}
.centered-card .sub {
  color: var(--text-dim); font-size: 14px;
  margin: 0 0 6px;
  text-align: center;
}

/* =================== LAYOUT 2: SPLIT SCREEN =================== */
.layout-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) {
  .layout-split { grid-template-columns: 1fr; }
  .layout-split .left { min-height: 240px; }
}
.layout-split .left {
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.4), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(37, 211, 163, 0.3), transparent 50%),
    linear-gradient(135deg, var(--card), var(--bg));
  padding: 60px 60px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.layout-split .left::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124, 92, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124, 92, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* .split-content wraps the hero + quote so the absolutely-positioned video
   doesn't disrupt the flex layout of the left panel. */
.layout-split .left .split-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

/* Background video for split-screen left panel */
.layout-split .left.has-video { padding: 0; background: #000; }
.layout-split .left.has-video::before { display: none; }
.layout-split .left .split-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.layout-split .left.has-video .split-content {
  padding: 60px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  min-height: 100%;
}
@media (max-width: 900px) {
  .layout-split .left.has-video .split-content {
    padding: 30px;
  }
}
.layout-split .left .hero { position: relative; max-width: 460px; }
.layout-split .left .hero h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1; font-weight: 600;
  letter-spacing: -0.025em;
  margin: 28px 0 14px;
}
.layout-split .left .hero p { color: var(--text-dim); font-size: 16px; margin: 0; }
.layout-split .left .quote {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 460px;
}
.layout-split .left .quote .who { margin-top: 8px; color: var(--text-mute); font-size: 12px; }
.layout-split .right {
  background: var(--bg);
  padding: 60px 50px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.layout-split .right .inner { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.layout-split .right h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.layout-split .right .sub { color: var(--text-dim); font-size: 14px; margin: -8px 0 8px; }

/* =================== LAYOUT 3: FULL BLEED =================== */
.layout-fullbleed {
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(180deg, rgba(11,13,16,0.5), rgba(11,13,16,0.9)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'><defs><radialGradient id='g1' cx='30%25' cy='30%25'><stop offset='0' stop-color='%237c5cff' stop-opacity='0.5'/><stop offset='1' stop-color='%237c5cff' stop-opacity='0'/></radialGradient><radialGradient id='g2' cx='70%25' cy='70%25'><stop offset='0' stop-color='%2325d3a3' stop-opacity='0.4'/><stop offset='1' stop-color='%2325d3a3' stop-opacity='0'/></radialGradient><radialGradient id='g3' cx='90%25' cy='10%25'><stop offset='0' stop-color='%23ec4899' stop-opacity='0.3'/><stop offset='1' stop-color='%23ec4899' stop-opacity='0'/></radialGradient></defs><rect width='1600' height='900' fill='%230b0d10'/><rect width='1600' height='900' fill='url(%23g1)'/><rect width='1600' height='900' fill='url(%23g2)'/><rect width='1600' height='900' fill='url(%23g3)'/></svg>");
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.layout-fullbleed::before {
  content: ""; position: absolute; inset: 0;
  backdrop-filter: blur(0.5px);
  background: radial-gradient(circle at center, transparent 30%, rgba(11,13,16,0.4) 80%);
}
.fullbleed-card {
  background: rgba(20, 24, 29, 0.75);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.fullbleed-card h1 { font-size: 26px; font-weight: 600; margin: 6px 0 0; letter-spacing: -0.02em; }
.fullbleed-card .sub { color: var(--text-dim); font-size: 14px; margin: 0 0 6px; text-align: center; }

.footer-meta { margin-top: 14px; font-size: 12px; color: var(--text-mute); text-align: center; }
.footer-meta a { color: var(--text-dim); text-decoration: none; border-bottom: 1px dotted var(--text-mute); }
.footer-meta a:hover { color: var(--text); }
