:root {
  color-scheme: light;
  --bg-1: rgb(250, 247, 255);
  --bg-2: rgb(230, 242, 255);
  --bg-3: rgb(240, 252, 245);
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(0, 0, 0, 0.08);
  --field: rgb(242, 245, 250);
  --text: #000;
  --muted: rgba(0, 0, 0, 0.6);
  --button: rgb(46, 117, 242);
  --button-muted: rgba(46, 117, 242, 0.52);
  --shadow: 0 24px 80px rgba(40, 45, 75, 0.16);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body,
button,
input {
  font: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(120, 206, 255, 0.26), transparent 20rem),
    radial-gradient(circle at 85% 18%, rgba(255, 133, 182, 0.22), transparent 16rem),
    radial-gradient(circle at 18% 78%, rgba(130, 244, 186, 0.24), transparent 18rem),
    radial-gradient(circle at 82% 82%, rgba(255, 215, 123, 0.24), transparent 18rem),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  overflow: hidden;
}

.signin-body {
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}

.auth-shell {
  width: min(100%, 940px);
  position: relative;
  z-index: 1;
}

.auth-frame {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 420px);
  max-width: 880px;
  height: min(600px, calc(100vh - 120px));
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    0 30px 80px rgba(36, 42, 72, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  overflow: hidden;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.9));
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.brand-mark {
  margin: 0;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.35);
  font-family: "Optima", "Avenir Next", "Helvetica Neue", sans-serif;
}

.brand-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.brand-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
}

.brand-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  color: rgba(0, 0, 0, 0.7);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.auth-card {
  width: min(100%, 420px);
  padding: 24px 20px 22px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 22px 40px rgba(20, 28, 48, 0.12),
    0 4px 14px rgba(20, 28, 48, 0.06);
}

.auth-header {
  display: grid;
  gap: 6px;
  padding-top: 6px;
  padding-bottom: 12px;
  text-align: center;
}

.auth-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: #111;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
}

.auth-header p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
  padding-top: 40px;
}

.field {
  display: block;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(243, 246, 251, 0.98), rgba(238, 242, 248, 0.98));
  color: var(--text);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.field input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.field input:focus {
  outline: none;
  border-color: rgba(46, 117, 242, 0.26);
  box-shadow:
    0 0 0 4px rgba(46, 117, 242, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.primary-action {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: var(--button);
  color: white;
  letter-spacing: 0.04em;
  font-size: 15px;
  box-shadow:
    0 10px 18px rgba(46, 117, 242, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: not-allowed;
  opacity: 0.96;
}

.sign-in-action {
  background: linear-gradient(180deg, rgba(88, 149, 255, 0.84), rgba(46, 117, 242, 0.78));
}

.register-action {
  background: linear-gradient(180deg, rgba(88, 149, 255, 1), rgba(46, 117, 242, 0.94));
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.68;
  mix-blend-mode: multiply;
}

.orb-cyan {
  width: 420px;
  height: 420px;
  background: rgba(87, 184, 250, 0.55);
  left: calc(50% - 640px);
  top: calc(50% - 420px);
}

.orb-pink {
  width: 320px;
  height: 320px;
  background: rgba(255, 122, 163, 0.55);
  left: calc(50% + 300px);
  top: calc(50% - 360px);
}

.orb-green {
  width: 280px;
  height: 280px;
  background: rgba(112, 235, 179, 0.5);
  left: calc(50% - 560px);
  top: calc(50% + 120px);
}

.orb-gold {
  width: 360px;
  height: 360px;
  background: rgba(255, 219, 107, 0.5);
  left: calc(50% + 260px);
  top: calc(50% + 180px);
}

.orb-violet {
  width: 240px;
  height: 240px;
  background: rgba(224, 117, 250, 0.5);
  left: calc(50% - 180px);
  top: calc(50% - 470px);
}

.orb-orange {
  width: 220px;
  height: 220px;
  background: rgba(250, 158, 66, 0.5);
  left: calc(50% + 70px);
  top: calc(50% - 470px);
}

.orb-mint {
  width: 260px;
  height: 260px;
  background: rgba(148, 245, 209, 0.5);
  left: calc(50% - 40px);
  top: calc(50% + 270px);
}

.orb-rose {
  width: 200px;
  height: 200px;
  background: rgba(250, 97, 138, 0.5);
  left: calc(50% + 280px);
  top: calc(50% - 10px);
}

.orb-lime {
  width: 300px;
  height: 300px;
  background: rgba(128, 240, 158, 0.45);
  left: calc(50% - 500px);
  top: calc(50% - 20px);
}

.orb-amber {
  width: 260px;
  height: 260px;
  background: rgba(255, 204, 140, 0.5);
  left: calc(50% + 110px);
  top: calc(50% + 290px);
}

.orb-purple {
  width: 220px;
  height: 220px;
  background: rgba(167, 133, 250, 0.5);
  left: calc(50% - 420px);
  top: calc(50% - 110px);
}

@media (max-width: 760px) {
  .auth-frame {
    grid-template-columns: 1fr;
    height: auto;
  }

  .brand-panel {
    display: none;
  }

  .auth-panel {
    padding: 24px;
    background: transparent;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-header h2 {
    font-size: 24px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }
}
