:root {
  --auth-ink: #232946;
  --auth-heading: #34385f;
  --auth-purple: #484aaa;
  --auth-purple-hover: #3d408f;
  --auth-pink: #ee3d8d;
  --auth-muted: #687087;
  --auth-line: #dce1eb;
  --auth-paper: #ffffff;
  --auth-page: #f2f4f9;
  --auth-error: #a22b45;
}

html,
body.admin-auth-page {
  min-width: 0;
  min-height: 100%;
}

body.admin-auth-page {
  margin: 0;
  background: var(--auth-paper);
  color: var(--auth-ink);
  font-family: var(--default-font, "Roboto", system-ui, sans-serif);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, 40%) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--auth-ink);
  background-image: url("../img/compound-bay.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.auth-brand::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(155deg, rgba(35, 41, 70, .67), rgba(35, 41, 70, .47) 48%, rgba(22, 29, 54, .78));
  content: "";
}

.auth-brand__inner {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(2rem, 4.5vw, 4rem);
}

.auth-brand__identity {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(12, 18, 39, .14);
}

.auth-brand__identity img {
  display: block;
  width: min(100%, 19rem);
  max-height: 6rem;
  object-fit: contain;
}

.auth-brand__copy {
  max-width: 24rem;
  margin-block: 3rem;
}

.auth-brand__eyebrow,
.auth-heading__eyebrow {
  margin: 0 0 .75rem;
  color: var(--auth-pink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-brand__copy h2 {
  margin: 0 0 .85rem;
  color: #fff;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
}

.auth-brand__copy > p:last-child {
  max-width: 22rem;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.02rem;
  line-height: 1.65;
}

.auth-brand__caption {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  letter-spacing: .02em;
}

.auth-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--auth-paper);
}

.auth-panel__inner {
  width: 100%;
  max-width: 420px;
}

.auth-heading {
  margin-bottom: 2rem;
}

.auth-heading__eyebrow {
  margin-bottom: .55rem;
  color: var(--auth-purple);
}

.auth-heading h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(1.85rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.auth-heading__description {
  margin: .7rem 0 0;
  color: var(--auth-muted);
  font-size: .98rem;
  line-height: 1.55;
}

.auth-message {
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  background: #f6f7fb;
  color: var(--auth-heading);
  font-size: .92rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 1.25rem;
}

.auth-field {
  min-width: 0;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.auth-label {
  display: block;
  margin: 0 0 .45rem;
  color: var(--auth-heading);
  font-size: .91rem;
  font-weight: 600;
}

.auth-inline-link,
.auth-form__secondary a,
.auth-return a {
  color: var(--auth-purple);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: .2em;
}

.auth-inline-link:hover,
.auth-form__secondary a:hover,
.auth-return a:hover {
  color: var(--auth-purple-hover);
  text-decoration: underline;
}

.auth-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-size: .96rem;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input::placeholder {
  color: #8990a3;
  opacity: 1;
}

.auth-input:hover {
  border-color: #b8bfd0;
}

.auth-input:focus {
  border-color: var(--auth-purple);
  box-shadow: 0 0 0 3px rgba(72, 74, 170, .12);
  outline: none;
}

.auth-input:focus-visible {
  outline: 3px solid #1e3a8a;
  outline-offset: 2px;
}

.auth-input.is-invalid {
  border-color: var(--auth-error);
}

.auth-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(162, 43, 69, .12);
}

.auth-password-wrap {
  position: relative;
}

.auth-input--password {
  padding-right: 3.25rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: .45rem;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: #f1f2f7;
  color: var(--auth-ink);
}

.auth-field__error {
  margin: .45rem 0 0;
  color: var(--auth-error);
  font-size: .84rem;
  line-height: 1.45;
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: .25rem;
  padding: .75rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--auth-purple);
  color: #fff;
  font: inherit;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--auth-purple-hover);
  box-shadow: 0 7px 16px rgba(35, 41, 70, .14);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .75;
}

.auth-submit i {
  color: #ffd8e9;
  font-size: .88rem;
}

.auth-form__secondary {
  margin: -.1rem 0 0;
  text-align: center;
}

.auth-return {
  margin-top: 1.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid #edf0f5;
  text-align: center;
}

.auth-return a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  color: var(--auth-muted);
  font-weight: 500;
}

.auth-return a:hover {
  color: var(--auth-purple);
}

@media (max-width: 860px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-brand {
    background-image: none;
    background-color: var(--auth-page);
    color: var(--auth-ink);
  }

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

  .auth-brand__inner {
    min-height: 0;
    gap: 0;
    padding: .8rem clamp(1.25rem, 6vw, 3rem);
  }

  .auth-brand__identity {
    padding: .35rem .55rem;
    border-radius: 7px;
    box-shadow: none;
  }

  .auth-brand__identity img {
    width: min(100%, 12rem);
    max-height: 3.25rem;
  }

  .auth-brand__copy,
  .auth-brand__caption {
    display: none;
  }

  .auth-panel {
    border-top: 1px solid var(--auth-line);
  }

  .auth-panel {
    padding: 2rem clamp(1.25rem, 6vw, 3rem) 2.5rem;
  }
}

@media (max-width: 480px) {
  .auth-brand__inner {
    gap: 1rem;
  }

  .auth-panel {
    align-items: flex-start;
  }

  .auth-heading {
    margin-bottom: 1.5rem;
  }

  .auth-heading h1 {
    font-size: 1.8rem;
  }

  .auth-form {
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input,
  .auth-submit {
    transition: none;
  }

  .auth-submit:hover:not(:disabled),
  .auth-submit:active:not(:disabled) {
    transform: none;
  }
}
