* {
  box-sizing: border-box;
}

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

body {
  background: #f3f6fa;
  color: #14233b;
  font-family: var(--gaia-font-body);
}

a {
  color: var(--gaia-brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
}

.auth-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 44px clamp(38px, 5vw, 76px);
  color: #eef5ff;
  background:
    radial-gradient(circle at 74% 22%, rgb(82 154 230 / 24%), transparent 33%),
    linear-gradient(145deg, #0b1729 0%, #112a4a 56%, #12375f 100%);
}

.auth-brand-panel::after {
  position: absolute;
  right: -170px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgb(255 255 255 / 3%),
    0 0 0 145px rgb(255 255 255 / 2%);
  content: "";
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: inherit;
}

.auth-brand:hover {
  text-decoration: none;
}

.auth-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.auth-brand-fallback {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #10213a;
  background: #fff;
  font-weight: 800;
}

.auth-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.auth-brand strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.auth-brand small {
  color: rgb(238 245 255 / 67%);
  font-size: 11px;
}

.auth-brand-message {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: auto 0;
  padding: 80px 0;
}

.auth-brand-message p,
.auth-card-heading p {
  margin: 0 0 14px;
  color: #84b9ed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.auth-brand-message h1 {
  max-width: 560px;
  margin: 0;
  font-family: var(--gaia-font-body);
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.auth-brand-message > span {
  display: block;
  max-width: 520px;
  margin-top: 26px;
  color: rgb(238 245 255 / 73%);
  font-size: 16px;
  line-height: 1.65;
}

.auth-assurance {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  color: rgb(238 245 255 / 72%);
  font-size: 12px;
}

.auth-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-assurance i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69c7ba;
  box-shadow: 0 0 0 4px rgb(105 199 186 / 12%);
}

.auth-form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px;
  background:
    linear-gradient(rgb(255 255 255 / 65%), rgb(255 255 255 / 65%)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgb(20 35 59 / 3%) 48px
    );
}

.auth-card {
  width: min(100%, 460px);
  padding: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 65px rgb(18 42 73 / 11%);
}

.auth-card-heading {
  margin-bottom: 30px;
}

.auth-card-heading h2 {
  margin: 0;
  color: #10213a;
  font-size: 31px;
  letter-spacing: -0.035em;
}

.auth-card-heading > span {
  display: block;
  margin-top: 9px;
  color: #65748a;
  font-size: 14px;
  line-height: 1.5;
}

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

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

.auth-form label > span {
  color: #243750;
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #bdc9d8;
  border-radius: 5px;
  outline: none;
  color: #13243d;
  background: #fff;
}

.auth-form input:focus {
  border-color: var(--gaia-brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gaia-brand-primary) 14%, transparent);
}

.auth-form small {
  color: #77869a;
  font-size: 11px;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #7b899b;
  font-size: 11px;
}

.auth-form-options a {
  flex: none;
  font-size: 12px;
  font-weight: 700;
}

.auth-primary-button {
  display: grid;
  width: 100%;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--gaia-brand-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.auth-primary-button:hover {
  filter: brightness(0.94);
}

.auth-primary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.auth-secondary-link {
  justify-self: center;
  font-size: 12px;
  font-weight: 700;
}

.auth-alert {
  margin: -8px 0 22px;
  padding: 12px 14px;
  border: 1px solid #edc5bf;
  border-radius: 5px;
  color: #8e2f22;
  background: #fff6f4;
  font-size: 12px;
  line-height: 1.5;
}

.auth-alert.success {
  border-color: #b9ddd6;
  color: #205f55;
  background: #f1fbf8;
}

.auth-callback {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 0;
  text-align: center;
}

.auth-callback p {
  margin: 0;
  color: #758398;
  font-size: 12px;
}

.auth-spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border: 3px solid #dce5ef;
  border-top-color: var(--gaia-brand-primary);
  border-radius: 50%;
  animation: auth-spin 0.75s linear infinite;
}

.auth-card footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #e7ecf2;
  color: #8793a3;
  font-size: 10px;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .auth-brand-panel {
    min-height: auto;
    padding: 28px;
  }

  .auth-brand-message {
    padding: 70px 0 42px;
  }

  .auth-brand-message h1 {
    font-size: 38px;
  }

  .auth-assurance {
    display: none;
  }

  .auth-form-panel {
    min-height: auto;
    padding: 34px 20px 56px;
  }
}

@media (max-width: 540px) {
  .auth-card {
    padding: 30px 24px;
  }

  .auth-form-options,
  .auth-card footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
