:root {
  --bg: #f7f2e9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(243, 249, 255, 0.7);
  --text: #1f3047;
  --muted: #61708a;
  --line: rgba(110, 145, 201, 0.18);
  --primary: #3f6fe0;
  --secondary: #5dc7a8;
  --accent: #0f9f70;
  --accent-strong: #0a7f58;
  --danger: #b42318;
  --shadow: 0 28px 70px rgba(92, 120, 168, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(132, 240, 207, 0.28), transparent 26%),
    radial-gradient(circle at top right, rgba(140, 168, 255, 0.2), transparent 30%),
    radial-gradient(circle at bottom center, rgba(255, 214, 153, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f3eb 0%, #edf4f7 48%, #eef3fb 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 28rem;
  height: 28rem;
  top: -6rem;
  left: -5rem;
  background: radial-gradient(circle, rgba(120, 227, 193, 0.32), transparent 62%);
}

body::after {
  width: 32rem;
  height: 32rem;
  right: -8rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(143, 173, 255, 0.28), transparent 64%);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  padding: 28px;
}

.auth-layout-simple {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  align-content: center;
}

.auth-panel {
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.auth-panel-brand {
  padding: 42px;
  background:
    radial-gradient(circle at top left, rgba(132, 240, 207, 0.16), transparent 32%),
    radial-gradient(circle at right, rgba(140, 168, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 250, 255, 0.74));
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-panel-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(140, 168, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(248, 250, 255, 0.74));
}

.auth-panel-form-simple {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 34px;
}

.auth-brand-card {
  margin-bottom: 28px;
}

.auth-brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(72, 113, 191, 0.18);
}

.auth-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(88, 124, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 242, 255, 0.72));
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(92, 120, 168, 0.08);
}

.auth-panel-brand h1,
.auth-card h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #1b2d44;
}

.auth-panel-brand h1 {
  max-width: 10ch;
  font-size: clamp(2.5rem, 4.9vw, 4.7rem);
  line-height: 0.92;
}

.auth-copy,
.auth-card-copy,
.auth-list,
.auth-alt,
.feedback {
  font-size: 1rem;
  line-height: 1.75;
}

.auth-copy {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
}

.auth-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}

.auth-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  color: #28405f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.auth-card {
  width: min(100%, 560px);
  padding: 40px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background:
    radial-gradient(circle at top left, rgba(132, 240, 207, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 255, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  margin: 0 auto;
}

.auth-card h2 {
  font-size: clamp(2.3rem, 3.1vw, 3.3rem);
  line-height: 0.95;
}

.auth-card-copy {
  color: var(--muted);
  margin: 14px 0 26px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #27405d;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.auth-form input:focus {
  outline: 2px solid rgba(63, 111, 224, 0.16);
  border-color: rgba(63, 111, 224, 0.34);
}

.auth-form button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 700;
  color: #12302b;
  background: linear-gradient(135deg, rgba(132, 240, 207, 0.9), rgba(200, 235, 175, 0.9));
  box-shadow: 0 18px 34px rgba(112, 179, 149, 0.18);
  cursor: pointer;
}

.feedback {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--muted);
}

.feedback[data-state="error"] {
  color: var(--danger);
}

.feedback[data-state="success"] {
  color: #067647;
}

.auth-alt {
  margin: 18px 0 0;
  color: var(--muted);
}

.auth-link-row {
  margin: 16px 0 0;
}

.auth-alt a {
  color: var(--text);
  font-weight: 700;
}

.auth-link-row a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel-brand h1 {
    max-width: 12ch;
  }
}

@media (max-width: 720px) {
  .auth-layout {
    padding: 16px;
    gap: 18px;
  }

  .auth-panel-brand,
  .auth-panel-form,
  .auth-card {
    padding: 26px;
  }

  .auth-panel-brand h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }
}
