*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0d1b3e;
  --accent:     #d32f2f;
  --accent2:    #2952b3;
  --blue:       #1a3a8f;
  --muted:      #7a8ba8;
  --surface:    #f0f3f9;
  --white:      #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cabinet Grotesk', sans-serif;
  background: var(--ink);
  color: var(--ink);
  min-height: 100vh;
}

/* ── LAYOUT ── */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT BRAND PANEL ── */
.brand-panel {
  position: relative;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  overflow: hidden;
  min-height: 100vh;
}

.brand-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.6;
}

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41,82,179,0.28) 0%, transparent 70%);
  top: -150px; left: -150px;
  animation: drift1 9s ease-in-out infinite alternate;
}
.blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(211,47,47,0.18) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: drift2 12s ease-in-out infinite alternate;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(41,82,179,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: drift1 15s ease-in-out infinite alternate;
}

@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(40px,30px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-30px,-40px); } }

/* Grid lines */
.brand-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* Blue accent line on right edge */
.brand-panel::after {
  content: '';
  position: absolute; right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(41,82,179,0.5), transparent);
}

/* Logo image */
.brand-logo {
  position: relative; z-index: 2;
  text-decoration: none;
  display: flex; align-items: center;
  animation: fadeUp 0.6s ease both;
}
.brand-logo img {
  height: 62px; width: auto; object-fit: contain;
}

.brand-tagline {
  position: relative; z-index: 2;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  animation: fadeUp 0.6s 0.05s ease both;
}

.brand-image-wrap {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 0;
  animation: fadeUp 0.6s 0.1s ease both;
}
.brand-image-placeholder {
  width: 100%; max-width: 420px;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.brand-image-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(41,82,179,0.06) 0%, transparent 60%);
  border-radius: 24px;
}
.placeholder-icon  { font-size: 2.5rem; position: relative; z-index: 1; }
.placeholder-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; position: relative; z-index: 1; }

.brand-testimonial {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.5rem 0;
  animation: fadeUp 0.6s 0.15s ease both;
  backdrop-filter: blur(10px);
}
.brand-testimonial p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6; font-style: italic;
  margin-bottom: 0.75rem;
}
.brand-testimonial-author { display: flex; align-items: center; gap: 0.6rem; }
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: white; flex-shrink: 0;
}
.author-info  { display: flex; flex-direction: column; gap: 1px; }
.author-name  { font-size: 0.78rem; font-weight: 600; color: white; }
.author-loc   { font-size: 0.7rem; color: rgba(255,255,255,0.3); }

.brand-copy {
  position: relative; z-index: 2;
  animation: fadeUp 0.6s 0.2s ease both;
}
.brand-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700; color: white;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.brand-copy h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-copy p {
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem; line-height: 1.6;
  max-width: 360px; margin-bottom: 1.5rem;
}

.brand-stats  { display: flex; gap: 2rem; }
.brand-stat   { display: flex; flex-direction: column; gap: 0.2rem; }
.brand-stat strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: white;
}
.brand-stat span {
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── RIGHT FORM PANEL ── */
.form-panel {
  background: var(--surface);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 3rem 4rem;
  overflow-y: auto;
  min-height: 100vh;
}

.form-inner {
  width: 100%; max-width: 480px;
  animation: fadeUp 0.7s 0.15s ease both;
  padding-top: 0.5rem;
}

.form-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2.5rem;
}
.back-link {
  display: flex; align-items: center; gap: 0.35rem;
  color: var(--muted); font-size: 0.82rem; text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }

/* Form logo (right side of topbar on mobile) */
.form-logo {
  display: none;
  text-decoration: none;
}
.form-logo img {
  height: 32px; width: auto; object-fit: contain;
}

.form-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(211,47,47,0.08); border: 1px solid rgba(211,47,47,0.2);
  color: #b71c1c; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 100px;
  margin-bottom: 1.2rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.form-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.form-subtitle {
  color: var(--muted); font-size: 0.88rem;
  line-height: 1.6; margin-bottom: 2rem;
}

.form-divider {
  height: 1px;
  background: rgba(13,27,62,0.08);
  margin: 0.5rem 0 1.5rem;
}

.section-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(13,27,62,0.3);
  margin-bottom: 0.85rem; margin-top: 0.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(13,27,62,0.07);
}

/* ── FORM INPUTS ── */
.input-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.input-group {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 1rem;
}
.input-group label {
  font-size: 0.79rem; font-weight: 600;
  color: rgba(13,27,62,0.55); letter-spacing: 0.02em;
}
.label-optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(13,27,62,0.1);
  border-radius: 12px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 0.9rem; color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 3px rgba(13,27,62,0.05);
  -webkit-appearance: none;
}
input::placeholder { color: rgba(13,27,62,0.28); }
input:focus, select:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(41,82,179,0.1);
}
input.error   { border-color: var(--accent);  box-shadow: 0 0 0 3px rgba(211,47,47,0.1); }
input.success { border-color: #1976d2; box-shadow: 0 0 0 3px rgba(25,118,210,0.1); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8ba8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Password toggle */
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 3.2rem; }
.toggle-pw {
  position: absolute; right: 0.6rem; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(13,27,62,0.04);
  border: 1px solid rgba(13,27,62,0.08);
  border-radius: 8px;
  color: rgba(13,27,62,0.35);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.toggle-pw:hover {
  background: rgba(41,82,179,0.08);
  border-color: rgba(41,82,179,0.25);
  color: var(--accent2);
}
.toggle-pw.active {
  background: rgba(211,47,47,0.08);
  border-color: rgba(211,47,47,0.25);
  color: var(--accent);
}

/* Password strength */
.pw-strength {
  height: 3px; background: rgba(13,27,62,0.07);
  border-radius: 2px; margin-top: 0.5rem; overflow: hidden;
}
.pw-bar { height: 100%; width: 0%; border-radius: 2px; transition: width 0.3s ease, background 0.3s ease; }
.pw-label { font-size: 0.7rem; margin-top: 0.3rem; display: block; }

/* Checkbox */
.checkbox-group { margin-bottom: 1.25rem; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 0.65rem;
  cursor: pointer; font-size: 0.82rem;
  color: rgba(13,27,62,0.55); line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid rgba(13,27,62,0.18);
  border-radius: 5px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; background: white;
}
.checkbox-label input:checked ~ .checkbox-custom { background: var(--accent2); border-color: var(--accent2); }
.checkbox-label input:checked ~ .checkbox-custom::after { content: '✓'; font-size: 11px; font-weight: 700; color: white; }
.checkbox-label a { color: var(--accent2); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* Error */
.error-message {
  font-size: 0.82rem; color: var(--accent);
  background: rgba(211,47,47,0.06);
  border: 1px solid rgba(211,47,47,0.18);
  border-radius: 10px; padding: 0.65rem 1rem;
  margin-bottom: 1rem; display: none;
}
.error-message:not(:empty) { display: block; }

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:hover {
  background: #e53935;
  transform: translateY(-1px);
}
.submit-btn:active { transform: translateY(0); }

.signin-link { text-align: center; font-size: 0.83rem; color: var(--muted); }
.signin-link a { color: var(--accent2); text-decoration: none; font-weight: 600; }
.signin-link a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .form-panel { padding: 2.5rem; }
}

@media (max-width: 768px) {
  .page-wrap { grid-template-columns: 1fr; }

  .brand-panel {
    min-height: auto;
    padding: 1.2rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .brand-image-wrap,
  .brand-copy,
  .brand-testimonial,
  .brand-tagline,
  .blob-2, .blob-3 { display: none; }
  .blob-1 { width: 180px; height: 180px; top: -60px; left: -60px; }
  .brand-panel::before, .brand-panel::after { display: none; }

  .form-panel { padding: 2rem 1.25rem; align-items: flex-start; }
  .form-inner { max-width: 100%; }
  .input-row { grid-template-columns: 1fr; }
  .form-topbar { margin-bottom: 1.5rem; }
  .form-title { font-size: 2rem; }
  .form-logo { display: flex; }

  .toggle-pw { width: 28px; height: 28px; right: 0.5rem; border-radius: 6px; }
  .input-icon-wrap input { padding-right: 2.8rem; }
}

@media (max-width: 400px) {
  .form-panel { padding: 1.5rem 1rem; }
  .form-title { font-size: 1.75rem; }
}

/* ── SIGNUP CHOICE PAGE ── */
.cards-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(13,27,62,0.3);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.cards-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(13,27,62,0.07);
}

.cards-grid {
  display: flex; flex-direction: column;
  gap: 1.4rem; margin-bottom: 1.5rem;
}

.signup-card {
  background: white;
  border: 1.5px solid rgba(13,27,62,0.08);
  border-radius: 16px;
  padding: 2.75rem 2.5rem;
  display: flex; align-items: center; gap: 1.75rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(13,27,62,0.05);
  position: relative; overflow: hidden;
}
.signup-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(41,82,179,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.signup-card:hover {
  border-color: rgba(211,47,47,0.35);
  box-shadow: 0 6px 28px rgba(211,47,47,0.1);
  transform: translateY(-2px);
}
.signup-card:hover::before { opacity: 1; }
.signup-card.featured { border-color: rgba(211,47,47,0.2); }

.card-icon {
  width: 90px; height: 90px; flex-shrink: 0;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  background: rgba(211,47,47,0.07);
  border: 1px solid rgba(211,47,47,0.12);
  position: relative; z-index: 1;
}

.card-body { flex: 1; position: relative; z-index: 1; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.card-desc {
  font-size: 0.95rem; color: var(--muted); line-height: 1.5;
  margin-bottom: 0.75rem;
}
.card-perks {
  list-style: none; display: flex; flex-direction: column; gap: 0.55rem;
}
.card-perks li {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; color: rgba(13,27,62,0.48);
}
.perk-dot {
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%; flex-shrink: 0;
}

.card-arrow {
  flex-shrink: 0; color: rgba(13,27,62,0.18);
  transition: color 0.2s, transform 0.2s;
  position: relative; z-index: 1;
}
.signup-card:hover .card-arrow { color: var(--accent); transform: translateX(3px); }

.featured-badge {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem; border-radius: 100px; z-index: 1;
}

/* ── LOGIN PAGE ── */
.login-options {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.forgot-link {
  font-size: 0.82rem; color: var(--accent2);
  text-decoration: none; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  background: rgba(41,82,179,0.07);
  border: 1px solid rgba(41,82,179,0.15);
  transition: background 0.2s, border-color 0.2s;
}
.forgot-link:hover {
  background: rgba(41,82,179,0.12);
  border-color: rgba(41,82,179,0.3);
}

/* Brand panel hero logo image */
.brand-image-wrap {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}
.brand-hero-img {
  width: 90%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 60px rgba(41,82,179,0.7)) brightness(1.05);
  animation: fadeUp 0.6s 0.1s ease both;
  border-radius: 24px;
  overflow: hidden;
}

/* Decorative ring behind logo */
.brand-image-wrap::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,82,179,0.18) 0%, transparent 70%);
  border: 1px solid rgba(41,82,179,0.15);
  pointer-events: none;
  z-index: 1;
  animation: drift1 8s ease-in-out infinite alternate;
}

.brand-hero-tagline {
  position: relative; z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
}

body {
  padding-top: 75px;
}

input, select {
  border-radius: 10px; /* was 12px */
  border: 1px solid rgba(13,27,62,0.12);
}

.form-title {
  letter-spacing: -0.02em; /* was -0.03 */
}

.form-subtitle {
  font-size: 0.85rem; /* slightly tighter */
}

@media (max-width: 768px) {
  .brand-hero-img { display: none; }
  .brand-hero-tagline { display: none; }
}

