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

/* ─── VARIABLES ─── */
:root {
  --ink:        #111111;
  --ink-muted:  #888888;
  --accent:     #2563eb;
  --white:      #ffffff;
  --off-white:  #fafafa;
  --shadow:     0 2px 40px rgba(0, 0, 0, 0.06);
}

/* ─── BASE ─── */
html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
}

/* ─── SCENE ─── */
.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;       /* explicit row */
  overflow: hidden;
}

/* ─── PARALLAX ORBS ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 40% 40%, #dbeafe 0%, #eff6ff 60%, transparent 80%);
  top: -120px; left: -80px;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle at 60% 60%, #bfdbfe 0%, #dbeafe 60%, transparent 80%);
  bottom: -80px; left: 40px;
}
.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 50% 50%, #e0e7ff 0%, #eff6ff 60%, transparent 80%);
  top: 30%; left: 25%;
}
.orb-4 {
  width: 180px; height: 180px;
  background: radial-gradient(circle at 50% 50%, #bfdbfe 0%, transparent 70%);
  top: 10%; right: 5%;
  opacity: 0.4;
}

/* ─── GRID ─── */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
}
.grid-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  #000 0px, transparent 1px, transparent 80px, #000 80px),
    repeating-linear-gradient(90deg, #000 0px, transparent 1px, transparent 80px, #000 80px);
}

/* ─── LEFT PANEL ─── */
.left {
  flex: 1.1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px 60px 72px;
  position: relative;
  z-index: 1;
}

/* ─── BRAND ─── */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
  animation: slideDown 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--ink);
}

/* ─── TAGLINE ─── */
.tagline-block {
  animation: slideUp 0.9s 0.15s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.tagline-block h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.tagline-block h1 em {
  font-style: italic;
  color: var(--accent);
}

.tagline-block p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 360px;
  font-weight: 300;
}

/* ─── INFO CARDS ─── */
.info-cards {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 1s 0.3s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 340px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.info-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.info-card span {
  font-size: 13px;
  color: var(--ink-muted);
}

.info-card strong {
  font-weight: 500;
  color: var(--ink);
}

/* ─── DIVIDER ─── */
.divider {
  width: 1px;
  flex-shrink: 0;
  align-self: stretch;
  margin: 40px 0;
  background: linear-gradient(to bottom,
    transparent 0%,
    #e4e4e4     20%,
    #e4e4e4     80%,
    transparent 100%);
  z-index: 1;
}

/* ─── RIGHT PANEL ─── */
.right {
  flex: 0.9;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 40px;
}

/* ─── FORM CARD ─── */
.form-card {
  width: 100%;
  max-width: 360px;
  animation: fadeScale 0.9s 0.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.form-header {
  margin-bottom: 36px;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 300;
}

/* ─── ALERT ─── */
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ─── INPUT GROUP ─── */
.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  display: block;
}

.input-wrapper input::placeholder {
  color: #bbbbbb;
}

.input-wrapper input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* Focus sweep line */
.input-line {
  position: absolute;
  bottom: 1px;
  left: 50%;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.input-wrapper input:focus ~ .input-line {
  width: calc(100% - 4px);
}

/* ─── BUTTON ─── */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.2px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

.btn:active { transform: translateY(0); }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.5s linear forwards;
  pointer-events: none;
  z-index: 2;
}

/* ─── REGISTER TEXT ─── */
.register-text {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.register-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.register-text a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.register-text a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── CORNER MARK ─── */
.corner-mark {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #cccccc;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 300;
  white-space: nowrap;
}

/* ─── KEYFRAMES ─── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  html, body { overflow: auto; }

  .scene {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .left {
    flex: none;
    padding: 48px 32px 32px;
  }

  .divider { display: none; }

  .right {
    flex: none;
    padding: 32px;
  }

  .info-cards { display: none; }

  .corner-mark {
    position: static;
    display: block;
    text-align: center;
    transform: none;
    margin-top: 24px;
    padding-bottom: 24px;
  }
}
