:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #111827;
  --muted: #6b7280;
  --border: #dbe1ea;
  --primary: #5b3df5;
  --primary-dark: #4527d6;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 180ms cubic-bezier(.16,1,.3,1);
}

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

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f6f8fc 0%, #eef2ff 100%);
  color: var(--text);
}

/* ── LAYOUT ── */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

/* ══════════════════════════════════
   LEFT / VISUAL SIDE
══════════════════════════════════ */
.visual-side {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6c3ff5 0%, #5b3df5 45%, #3f2aa8 100%);
  color: #fff;
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* glow blobs */
.glow, .glow-2 {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.glow {
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.14);
  top: 80px; right: 60px;
}
.glow-2 {
  width: 420px; height: 420px;
  background: rgba(255,255,255,0.08);
  left: -60px; bottom: 10px;
}

/* ── BRAND ── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.brand-badge {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* ── HERO COPY ── */
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.hero-copy h1 {
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.06;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-copy p {
  color: rgba(255,255,255,0.76);
  font-size: 15.5px;
  line-height: 1.72;
}

/* ── CHARACTERS ── */
.characters-wrap {
  position: relative;
  height: 380px;
  width: min(100%, 540px);
  margin: 0 auto;
  z-index: 2;
  flex-shrink: 0;
}

.character {
  position: absolute;
  bottom: 0;
  transition: transform 0.55s cubic-bezier(.16,1,.3,1), height 0.55s cubic-bezier(.16,1,.3,1);
  transform-origin: bottom center;
}

.purple {
  left: 80px; width: 180px; height: 400px;
  background: #6C3FF5;
  border-radius: 14px 14px 0 0;
  z-index: 1;
}
.black {
  left: 250px; width: 120px; height: 310px;
  background: #232323;
  border-radius: 10px 10px 0 0;
  z-index: 2;
}
.orange {
  left: 0; width: 240px; height: 200px;
  background: #ff9b6b;
  border-radius: 140px 140px 0 0;
  z-index: 3;
}
.yellow {
  left: 320px; width: 140px; height: 230px;
  background: #e6d451;
  border-radius: 90px 90px 0 0;
  z-index: 4;
}

/* ── EYES ── */
.eyes {
  position: absolute;
  display: flex;
  gap: 18px;
  transition: all 0.25s ease;
}
.purple .eyes { top: 46px; left: 45px; gap: 30px; }
.black .eyes  { top: 34px; left: 26px; gap: 22px; }
.orange .eyes { top: 94px; left: 82px; gap: 30px; }
.yellow .eyes { top: 42px; left: 52px; gap: 22px; }

.eye-ball {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: height 0.14s ease;
}
.black .eye-ball { width: 16px; height: 16px; }

.pupil {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #232323;
  transform: translate(0px, 0px);
  transition: transform 0.08s linear;
}
.plain-pupil {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: #232323;
  transform: translate(0px, 0px);
  transition: transform 0.08s linear;
}

.yellow .mouth {
  position: absolute;
  width: 80px; height: 4px;
  border-radius: 999px;
  background: #232323;
  left: 40px; top: 90px;
  transition: all 0.2s ease;
}

.blink .eye-ball { height: 3px !important; }

/* ── FOOTER ── */
.visual-footer {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.visual-footer a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  transition: color 0.2s;
}
.visual-footer a:hover { color: #fff; }

/* ══════════════════════════════════
   RIGHT / FORM SIDE
══════════════════════════════════ */
.form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 38px 36px;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  font-weight: 700;
}

.login-header {
  margin-bottom: 28px;
}
.login-header h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text);
}
.login-header p {
  color: var(--muted);
  font-size: 14.5px;
}

.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.input-wrap { position: relative; }

input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 0 16px;
  background: rgba(255,255,255,0.95);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.10);
}

.password-input { padding-right: 52px; }

.toggle-password {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  display: grid; place-items: center;
  font-size: 16px;
  transition: color 0.2s;
}
.toggle-password:hover { color: var(--text); }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 14px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
}
.remember input {
  width: 16px; height: 16px;
  accent-color: var(--primary);
}

.forgot {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.forgot:hover { text-decoration: underline; }

.error {
  display: none;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 14px;
}

.btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: linear-gradient(180deg, #6c4df8 0%, #5b3df5 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(91, 61, 245, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #7559fb 0%, #4d31ea 100%);
}
.btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; }

.signup {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.signup a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.signup a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; }
  .visual-side { display: none; }
  .mobile-brand { display: flex; }
  .form-side { padding: 22px; min-height: 100vh; }
  .login-card { padding: 28px 22px; }
  .login-header h2 { font-size: 26px; }
}