:root {
  --meell-rose-50: #fff8fb;
  --meell-rose-100: #fdeef5;
  --meell-rose-200: #f8d8e7;
  --meell-rose-300: #efb6d0;
  --meell-rose-500: #d96b9f;
  --meell-lilac-50: #fbf9ff;
  --meell-lilac-100: #f1ebff;
  --meell-lilac-200: #e1d5fa;
  --meell-lilac-300: #c9b5ed;
  --meell-purple-500: #8c68c7;
  --meell-purple-600: #7552b4;
  --meell-plum-900: #3f3048;
  --meell-muted: #87778f;
  --meell-border: #eadfeb;
  --meell-shadow: 0 30px 80px rgba(80, 49, 92, .2);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--meell-plum-900);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 182, 208, .46), transparent 28%),
    radial-gradient(circle at 90% 86%, rgba(201, 181, 237, .46), transparent 30%),
    linear-gradient(145deg, #fffafb 0%, #f7f0fb 52%, #eee7f9 100%);
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 38px;
  isolation: isolate;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .28;
  background-image:
    linear-gradient(rgba(117, 82, 180, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 82, 180, .08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.orb-one {
  top: -110px;
  right: 8%;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 0 70px rgba(217, 107, 159, .18);
}

.orb-two {
  bottom: -130px;
  left: 5%;
  width: 330px;
  height: 330px;
  background: rgba(225, 213, 250, .54);
  box-shadow: inset 0 0 90px rgba(140, 104, 199, .14);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  width: min(1040px, 100%);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 30px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--meell-shadow);
  backdrop-filter: blur(18px);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 48px 50px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .28), transparent 25%),
    linear-gradient(145deg, #d96b9f 0%, #b77dce 48%, #7552b4 100%);
}

.brand-panel::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .04), 0 0 0 92px rgba(255, 255, 255, .035);
}

.brand-kicker {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  font-family: "Quicksand", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.meell-signature {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  margin: 20px 0 -6px -8px;
  overflow: visible;
  filter: drop-shadow(0 12px 24px rgba(64, 37, 85, .16));
}

.meell-signature path {
  fill: none;
  stroke: url(#loginSignatureGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meell-signature .signature-highlight {
  stroke: rgba(255, 255, 255, .26);
  stroke-width: 14;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 430px;
}

.brand-copy h1 {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.brand-copy p {
  max-width: 390px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .83);
  font-size: 14px;
  line-height: 1.65;
}

.planner-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: end center;
  min-height: 270px;
  padding-top: 14px;
}

.planner-art {
  width: min(100%, 410px);
  max-height: 290px;
  overflow: visible;
  filter: drop-shadow(0 22px 24px rgba(54, 31, 78, .22));
  transform: rotate(-2deg);
  transform-origin: center;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 58px 62px;
  background: rgba(255, 253, 254, .96);
}

.form-eyebrow {
  margin-bottom: 12px;
  color: var(--meell-rose-500);
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-panel h2 {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.subtitle {
  margin: 10px 0 31px;
  color: var(--meell-muted);
  font-size: 13px;
  line-height: 1.5;
}

.error-msg {
  display: none;
  margin-bottom: 17px;
  padding: 11px 13px;
  border: 1px solid #f3c6d2;
  border-radius: 11px;
  color: #a83f5e;
  background: #fff1f5;
  font-size: 13px;
}

.error-msg.show { display: block; }

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

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #5d4d63;
  font-size: 12px;
  font-weight: 700;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #b295bb;
  pointer-events: none;
  transform: translateY(-50%);
}

.form-group input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 45px;
  border: 1px solid var(--meell-border);
  border-radius: 13px;
  outline: none;
  color: var(--meell-plum-900);
  background: #fff;
  box-shadow: 0 2px 8px rgba(82, 53, 90, .035);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.form-group input::placeholder { color: #b4a8b8; }

.form-group input:focus {
  border-color: var(--meell-lilac-300);
  box-shadow: 0 0 0 4px rgba(176, 125, 209, .14), 0 5px 15px rgba(82, 53, 90, .06);
}

.pwd-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #9b83a3;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.pwd-toggle:hover { color: var(--meell-purple-600); background: var(--meell-lilac-50); }
.pwd-toggle svg { width: 19px; height: 19px; }
.pwd-toggle .eye-off { display: none; }
.pwd-toggle.is-visible .eye-on { display: none; }
.pwd-toggle.is-visible .eye-off { display: block; }

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 3px 0 21px;
}

.remember-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--meell-purple-500);
  cursor: pointer;
}

.remember-row label {
  color: #75677a;
  font-size: 12px;
  cursor: pointer;
}

.btn-login {
  position: relative;
  width: 100%;
  min-height: 51px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #d95f99 0%, #aa77d0 54%, #7552b4 100%);
  box-shadow: 0 12px 24px rgba(140, 104, 199, .25);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-login::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -35%;
  width: 24%;
  height: 220%;
  background: rgba(255, 255, 255, .2);
  transform: rotate(22deg);
  transition: left .45s ease;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(140, 104, 199, .31); }
.btn-login:hover::after { left: 120%; }
.btn-login:disabled { opacity: .58; cursor: wait; transform: none; }

.whatsapp-access {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid var(--meell-border);
  text-align: center;
}

.whatsapp-access p {
  margin: 0 0 12px;
  color: #66566c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 49px;
  padding: 11px 16px;
  border: 1px solid rgba(22, 164, 80, .24);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #29c66f 0%, #1aa95a 100%);
  box-shadow: 0 10px 22px rgba(31, 180, 98, .2);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-whatsapp svg { width: 21px; height: 21px; flex: 0 0 auto; }
.btn-whatsapp:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 14px 27px rgba(31, 180, 98, .27); }
.btn-whatsapp:focus-visible { outline: 3px solid rgba(41, 198, 111, .22); outline-offset: 3px; }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: #9b8d9f;
  font-size: 10px;
}

.secure-note svg { width: 14px; height: 14px; color: var(--meell-rose-500); }

@media (max-width: 840px) {
  .login-page { padding: 22px; }
  .login-shell { grid-template-columns: 1fr; width: min(560px, 100%); min-height: 0; }
  .brand-panel { min-height: 250px; padding: 25px 28px; }
  .brand-kicker { font-size: 9px; }
  .meell-signature { width: 235px; margin: 4px 0 -24px -9px; }
  .brand-copy { max-width: 270px; }
  .brand-copy h1 { font-size: 29px; }
  .brand-copy p { display: none; }
  .planner-stage { position: absolute; right: 8px; bottom: 7px; width: 49%; min-height: 0; }
  .planner-art { width: 100%; max-height: 180px; }
  .login-panel { padding: 40px 42px 43px; }
}

@media (max-width: 520px) {
  .login-page { display: block; padding: 0; }
  .orb { display: none; }
  .login-shell { width: 100%; min-height: 100vh; border: 0; border-radius: 0; }
  .brand-panel { min-height: 215px; padding: 20px 22px; }
  .brand-panel::before { width: 260px; height: 260px; }
  .meell-signature { width: 190px; margin-top: 0; }
  .brand-copy h1 { max-width: 205px; font-size: 24px; }
  .planner-stage { right: 0; bottom: -2px; width: 58%; }
  .planner-art { max-height: 160px; }
  .login-panel { justify-content: flex-start; padding: 32px 24px 38px; }
  .login-panel h2 { font-size: 27px; }
  .subtitle { margin-bottom: 25px; }
  .whatsapp-access { margin-top: 22px; padding-top: 19px; }
  .whatsapp-access p { max-width: 285px; margin-right: auto; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.success-msg { display: none; background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
.success-msg.show { display: block; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #b0a3b8; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--meell-border); }

.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: #1e293b; cursor: pointer; transition: background .15s, border-color .15s; text-decoration: none; }
.btn-google:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-google:active { background: #f1f5f9; }
.btn-google svg { flex-shrink: 0; }

.auth-links { display: flex; justify-content: center; gap: 20px; margin-top: 14px; }
.auth-link { font-size: 13px; color: var(--meell-purple-600); text-decoration: none; font-weight: 600; }
.auth-link:hover { color: var(--meell-purple-500); text-decoration: underline; }
