:root {
  --auth-primary: #4f46e5;
  --auth-primary-dark: #3730a3;
  --auth-primary-soft: #eef2ff;
  --auth-text: #111c36;
  --auth-muted: #68748d;
  --auth-border: #dfe5ef;
  --auth-surface: #ffffff;
  --auth-bg: #f5f7fb;
  --auth-success: #087b5a;
  --auth-danger: #b4233c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(79, 70, 229, 0.09), transparent 27%),
    radial-gradient(
      circle at 92% 88%,
      rgba(14, 165, 164, 0.08),
      transparent 25%
    ),
    var(--auth-bg);
  color: var(--auth-text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 76px 28px 40px;
}

.auth-home {
  position: absolute;
  top: 24px;
  left: 28px;
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.06);
}

.auth-shell {
  display: grid;
  width: min(100%, 980px);
  min-height: 610px;
  grid-template-columns: minmax(330px, 0.9fr) minmax(430px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--auth-border);
  border-radius: 22px;
  background: var(--auth-surface);
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 46px 42px 40px;
  background: linear-gradient(145deg, #eef2ff 0%, #e9f7f5 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.auth-showcase::before {
  top: 115px;
  right: -90px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(79, 70, 229, 0.08);
}

.auth-showcase::after {
  bottom: -95px;
  left: -75px;
  width: 240px;
  height: 240px;
  background: rgba(14, 165, 164, 0.08);
}

.register-showcase {
  background: linear-gradient(145deg, #edf8f6 0%, #eef2ff 100%);
}

.auth-logo-link,
.showcase-copy,
.showcase-points {
  position: relative;
  z-index: 1;
}

.auth-logo-link {
  display: inline-flex;
  width: fit-content;
}

.auth-logo {
  width: auto;
  height: 90px;
  object-fit: contain;
}

.showcase-copy {
  margin: auto 0;
  padding: 54px 0 42px;
}

.showcase-eyebrow,
.auth-kicker {
  color: var(--auth-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.showcase-copy p {
  max-width: 360px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.75;
}

.showcase-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-points span {
  padding: 7px 10px;
  border: 1px solid rgba(79, 70, 229, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #45516a;
  font-size: 10px;
  font-weight: 700;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 62px;
}

.register-panel {
  padding-top: 42px;
  padding-bottom: 42px;
}

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading h1 {
  margin: 9px 0 9px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.auth-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
}

.auth-alert-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: var(--auth-danger);
}

.auth-alert-success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: var(--auth-success);
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #34415b;
  font-size: 12px;
  font-weight: 750;
}

.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  outline: none;
  background: #fbfcfe;
  color: var(--auth-text);
  font: inherit;
  font-size: 13px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.auth-field input::placeholder {
  color: #a1aabc;
}

.auth-field input:hover {
  border-color: #c5ccda;
  background: #fff;
}

.auth-field input:focus {
  border-color: var(--auth-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.11);
}

.auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.2);
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  background: var(--auth-primary-dark);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26);
  transform: translateY(-1px);
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
  text-align: center;
}

.auth-switch a {
  color: var(--auth-primary);
  font-weight: 800;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-languages {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-border);
}

.auth-languages a {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--auth-muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.auth-languages a:hover,
.auth-languages a.active {
  background: var(--auth-primary-soft);
  color: var(--auth-primary);
}

@media (max-width: 820px) {
  .auth-shell {
    width: min(100%, 560px);
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: 210px;
    padding: 30px 34px;
  }

  .showcase-copy {
    padding: 34px 0 0;
  }

  .showcase-copy h2 {
    margin-bottom: 0;
    font-size: 31px;
  }

  .showcase-copy p,
  .showcase-points {
    display: none;
  }

  .auth-form-panel {
    padding: 40px 36px;
  }
}

@media (max-width: 520px) {
  .auth-page {
    display: block;
    padding: 70px 14px 24px;
  }

  .auth-home {
    top: 18px;
    left: 14px;
  }

  .auth-shell {
    min-height: 0;
    border-radius: 15px;
  }

  .auth-showcase {
    min-height: 165px;
    padding: 24px;
  }

  .auth-logo {
    width: 145px;
  }

  .showcase-copy {
    padding-top: 22px;
  }

  .showcase-eyebrow {
    display: none;
  }

  .showcase-copy h2 {
    margin: 0;
    font-size: 26px;
  }

  .auth-form-panel,
  .register-panel {
    padding: 32px 22px;
  }

  .auth-heading h1 {
    font-size: 25px;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
}
