*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:   #e8294c;
  --accent-d: #c8203e;
  --text:     #1a1a18;
  --muted:    #6b6b66;
  --dim:      #a0a09a;
  --border:   #e4e2dc;
  --surface:  #ffffff;
  --bg:       #f7f5f0;
  --left-bg:  #1a1612;
  --sans:     'DM Sans', system-ui, sans-serif;
  --serif:    'DM Serif Display', Georgia, serif;
}

html, body { height: 100%; font-family: var(--sans); background: var(--bg); color: var(--text); }

/* ── LAYOUT ── */
.shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.left {
  background:
    radial-gradient(ellipse 80% 60% at 20% 110%, rgba(232,41,76,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% -10%, rgba(232,41,76,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 50%, #1c1008 0%, #0f0c09 100%);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Subtle grid lines */
.left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Floating orbs */
.left::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,41,76,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Extra orb bottom */
.left-orb {
  position: absolute;
  bottom: 80px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,41,76,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: auto;
  position: relative;
  z-index: 1;
}

.left-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.left-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.left-content {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
  opacity: 0.9;
}

.quote-text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
  font-style: italic;
  letter-spacing: 0.1px;
}

.quote-text em {
  font-style: normal;
  color: #fff;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8294c, #f06080);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.quote-name     { font-size: 14px; font-weight: 600; color: #fff; }
.quote-location { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 1px; }

.left-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.stat-val   { font-family: var(--serif); font-size: 26px; color: #fff; line-height: 1; margin-bottom: 4px; }
.stat-val span { color: var(--accent); }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; }

/* ── RIGHT PANEL ── */
.right {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
}

.form-wrap {
  width: 100%;
  max-width: 380px;
}

.form-headline { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; color: var(--text); margin-bottom: 6px; }
.form-sub      { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }

/* Social buttons */
.social-btns { display: flex; gap: 10px; margin-bottom: 20px; }

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--sans);
  white-space: nowrap;
}

.btn-social:hover {
  border-color: #c0bdb8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.social-icon { width: 17px; height: 17px; flex-shrink: 0; }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: 11px; color: var(--dim); font-weight: 500; white-space: nowrap; }

/* Fields */
.field { margin-bottom: 14px; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.field-row .field-label { margin-bottom: 0; }

.forgot-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

.field-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  background: #fafaf8;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field-input::placeholder { color: var(--dim); }

.field-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,41,76,0.08);
}

.field-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.08);
}

.field-error { font-size: 11px; color: #e74c3c; margin-top: 4px; display: none; }
.field-error.visible { display: block; }

/* Submit */
.btn-submit {
  width: 100%;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: background 0.15s, transform 0.1s;
  margin-top: 8px;
  margin-bottom: 16px;
}

.btn-submit:hover  { background: var(--accent-d); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Register link */
.register-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.register-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover { text-decoration: underline; }

/* Legal */
.legal { font-size: 11px; color: var(--dim); text-align: center; line-height: 1.6; }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-wrap > * {
  animation: fadeUp 0.4s ease both;
}
.form-wrap > *:nth-child(1) { animation-delay: 0.05s; }
.form-wrap > *:nth-child(2) { animation-delay: 0.10s; }
.form-wrap > *:nth-child(3) { animation-delay: 0.15s; }
.form-wrap > *:nth-child(4) { animation-delay: 0.18s; }
.form-wrap > *:nth-child(5) { animation-delay: 0.21s; }
.form-wrap > *:nth-child(6) { animation-delay: 0.24s; }
.form-wrap > *:nth-child(7) { animation-delay: 0.27s; }
.form-wrap > *:nth-child(8) { animation-delay: 0.30s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .shell { grid-template-columns: 1fr; }
  .left  { display: none; }
  .right { padding: 40px 24px; }
}