:root {
  --text: #34232a;
  --muted: #9b737d;
  --rose: #d27693;
  --pink: #ef9fbc;
  --gold: #d7aa73;
  --line: rgba(214, 132, 158, .22);
  --shadow: 0 34px 90px rgba(159, 91, 114, .22);
}

* { box-sizing: border-box; }

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

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 211, 226, .9), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 232, 190, .85), transparent 30%),
    linear-gradient(135deg, #fff8fa 0%, #fff1f5 48%, #fff8ee 100%);
}

.login-page {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, .95fr);
  gap: 34px;
}

.brand-side {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(218, 135, 162, .72), rgba(219, 176, 123, .72)),
    linear-gradient(135deg, #f4c3d1, #ead0b3);
  box-shadow: var(--shadow);
}

.glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
  animation: float 7s ease-in-out infinite;
}

.glow-one { width: 280px; height: 280px; left: -65px; top: 80px; }
.glow-two { width: 190px; height: 190px; right: 90px; bottom: 110px; animation-delay: -2s; }
.glow-three { width: 110px; height: 110px; right: 70px; top: 80px; background: rgba(255,255,255,.2); animation-delay: -4s; }

.quote-card {
  position: absolute;
  left: 48px;
  bottom: 48px;
  width: 285px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.58);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 55px rgba(105, 54, 72, .17);
}

.quote-card span {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--pink), var(--gold));
}

.quote-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.05em;
}

.quote-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.login-side {
  display: grid;
  place-items: center;
}

.login-card {
  width: min(480px, 100%);
  padding: 48px;
  border-radius: 38px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  animation: cardIn .55s ease both;
}

.logo {
  width: 74px;
  height: 74px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  font-size: 24px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  box-shadow: 0 18px 38px rgba(210, 118, 147, .28);
}

.kicker {
  margin: 34px 0 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 950;
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: .93;
  letter-spacing: -.075em;
}

.subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 360px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 13px;
  font-weight: 900;
  margin-top: 8px;
}

input {
  height: 56px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  color: var(--text);
  outline: none;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(159, 91, 114, .06);
  transition: .2s;
}

input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 5px rgba(210, 118, 147, .13);
}

button {
  height: 58px;
  margin-top: 14px;
  border: 0;
  border-radius: 22px;
  color: white;
  font-size: 17px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  box-shadow: 0 20px 40px rgba(210, 118, 147, .32);
  cursor: pointer;
  transition: .2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 52px rgba(210, 118, 147, .38);
}

.error {
  min-height: 20px;
  margin: 4px 0 0;
  text-align: center;
  color: #b5485c;
  font-size: 13px;
  font-weight: 850;
}

.demo {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(20px,-18px,0) scale(1.06); }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .brand-side { min-height: 250px; }
}

@media (max-width: 540px) {
  .login-page { padding: 16px; }
  .brand-side { display: none; }
  .login-card { padding: 30px; border-radius: 30px; }
}
