.auth-screen {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: min(760px, calc(100vh - 64px));
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  margin: 32px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(17, 20, 28, 0.9);
  box-shadow: var(--shadow);
}

.auth-showcase {
  position: relative;
  display: flex;
  min-height: 700px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px 48px 34px;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 75% 45%, rgba(112, 92, 226, 0.2), transparent 37%),
    radial-gradient(ellipse at 16% 95%, rgba(47, 116, 96, 0.13), transparent 40%),
    linear-gradient(145deg, #171824 0%, #12141d 55%, #11171a 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(196, 184, 255, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-showcase::before {
  top: 16%;
  right: -180px;
}

.auth-showcase::after {
  top: 22%;
  right: -130px;
}

.auth-showcase > * {
  position: relative;
  z-index: 1;
}

.showcase-copy {
  width: min(100%, 500px);
  margin: 45px auto;
}

.showcase-copy h1 {
  margin: 22px 0 16px;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: clamp(46px, 5.4vw, 70px);
  font-weight: 700;
  letter-spacing: -4.4px;
  line-height: 1.08;
}

.showcase-copy > p {
  max-width: 410px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.showcase-code {
  max-width: 410px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(9, 11, 17, 0.55);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(18px);
}

.code-topbar {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-topbar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #565968;
}

.code-topbar > span:first-child {
  background: #e87979;
}

.code-topbar > span:nth-child(2) {
  background: #e8bd70;
}

.code-topbar > span:nth-child(3) {
  background: #72c991;
}

.code-topbar small {
  margin-left: 9px;
  color: #8e91a0;
  font-size: 10px;
}

.showcase-code pre {
  margin: 0;
  padding: 15px 17px 17px;
  color: #dbd9e7;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.9;
}

.code-muted {
  padding-right: 14px;
  color: #575b6b;
}

.code-purple {
  color: #c2a5ff;
}

.code-green {
  color: #a5dbad;
}

.code-blue {
  color: #88c7ef;
}

.showcase-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
}

.showcase-bottom > p {
  margin: 0;
  font-size: 11px;
}

.showcase-credit {
  margin-left: auto;
  color: #777987;
  font-size: 10px;
}

.avatar-stack {
  display: flex;
  padding-left: 2px;
}

.avatar-stack span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-left: -3px;
  border: 2px solid #171824;
  border-radius: 50%;
  background: #343347;
  color: #d6cdfb;
  font-size: 8px;
  font-weight: 700;
}

.avatar-stack span:nth-child(2) {
  background: #30463e;
  color: #a8e3c8;
}

.avatar-stack span:nth-child(3) {
  background: #384053;
  color: #b7d4ff;
}

.auth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 55px clamp(32px, 6vw, 84px) 30px;
  background: rgba(14, 16, 23, 0.48);
}

.auth-mobile-brand {
  display: none;
}

.auth-form-wrap {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.auth-heading {
  margin-bottom: 32px;
}

.auth-eyebrow {
  color: #9891c0;
  font-size: 9px;
}

.auth-heading h2 {
  margin: 12px 0 8px;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.25px;
}

.auth-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.form-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #d6d5df;
  font-size: 12px;
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  outline: none;
  background: #151720;
  color: var(--text);
  font-size: 13px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.form-group input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.form-group input:focus {
  border-color: rgba(155, 140, 255, 0.7);
  background: #171923;
  box-shadow: 0 0 0 3px rgba(155, 140, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(110deg, #7563e5, #967fff);
  box-shadow: 0 9px 24px rgba(116, 94, 226, 0.2);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(110deg, #806ef0, #a18dff);
  box-shadow: 0 12px 28px rgba(116, 94, 226, 0.3);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.btn.full {
  width: 100%;
}

.auth-submit {
  height: 49px;
  margin-top: 4px;
  border-radius: 11px;
  font-size: 13px;
}

.auth-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.error-text {
  min-height: 0;
  margin: -8px 0 0;
  color: var(--error);
  font-size: 12px;
  line-height: 1.5;
}

.error-text:empty {
  display: none;
}

.auth-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

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

.link-btn {
  display: block;
  margin: 9px auto 0;
  padding: 2px 5px;
  border: 0;
  background: transparent;
  color: #aa9dff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.link-btn:hover {
  color: #c3baff;
}

.auth-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 31px;
  color: #777a88;
  font-size: 10px;
}

.auth-assurance svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #79cba2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.auth-footer {
  margin-top: 45px;
  color: #70727f;
  font-size: 10px;
  text-align: center;
}

.auth-footer span {
  padding: 0 4px;
  color: #4f5260;
}

@media (max-width: 900px) {
  .auth-screen {
    width: min(600px, calc(100% - 36px));
    min-height: 0;
    grid-template-columns: 1fr;
    margin: 18px auto;
  }

  .auth-showcase {
    display: none;
  }

  .auth-panel {
    min-height: calc(100vh - 40px);
    padding: 28px 42px 23px;
  }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: auto;
  }

  .auth-form-wrap {
    padding: 46px 0;
  }

  .auth-footer {
    margin-top: auto;
  }
}

@media (max-width: 520px) {
  .auth-screen {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 24px 24px 18px;
  }

  .auth-form-wrap {
    padding: 35px 0;
  }

  .auth-heading {
    margin-bottom: 27px;
  }

  .auth-heading h2 {
    font-size: 27px;
  }
}
