:root {
  --auth-ink: #171b21;
  --auth-muted: #66717d;
  --auth-line: #d9e0e5;
  --auth-canvas: #ffffff;
  --auth-surface: #ffffff;
  --auth-cyan: #007f96;
  --auth-cyan-dark: #006274;
  --auth-cyan-bright: #00cce5;
  --auth-gold: #f0b429;
  --auth-danger: #c84242;
  --auth-success: #187854;
  --auth-display: "Arial Black", "Segoe UI", Arial, sans-serif;
  --auth-body: "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  background: var(--auth-canvas);
}

body,
button,
input {
  font-family: var(--auth-body);
  letter-spacing: 0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: var(--auth-canvas);
  color: var(--auth-ink);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.auth-showcase {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  height: 100dvh;
  min-height: 650px;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  overflow: hidden;
  padding: 34px 38px 40px;
  border-right: 4px solid var(--auth-gold);
  background: var(--auth-ink);
  color: #ffffff;
}

.auth-brand {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--auth-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.auth-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: #ffffff;
}

.auth-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-showcase__visual {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 36px 0 24px;
}

.auth-showcase__visual img {
  width: min(100%, 590px);
  max-height: 42vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.28));
}

.auth-showcase__copy {
  max-width: 500px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-showcase__copy p,
.auth-heading p {
  margin: 0 0 8px;
  color: var(--auth-cyan-bright);
  font-family: var(--auth-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-showcase__copy strong {
  display: block;
  color: #ffffff;
  font-family: var(--auth-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-showcase__copy span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.6;
}

.auth-workspace {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: 28px 44px 44px;
  background: var(--auth-surface);
}

.auth-topbar {
  display: flex;
  width: min(100%, 520px);
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.auth-home-link,
.auth-switch-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-home-link {
  gap: 8px;
  color: #53606c;
}

.auth-home-link span {
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
}

.auth-switch-link {
  min-width: 116px;
  padding: 8px 14px;
  border: 1px solid #a8b6c0;
  border-radius: 6px;
  color: #303942;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
  color: var(--auth-cyan);
  outline: none;
}

.auth-switch-link:hover,
.auth-switch-link:focus-visible {
  border-color: var(--auth-cyan);
  background: #f1fafb;
  color: var(--auth-cyan-dark);
  outline: none;
}

.auth-form-wrap {
  width: min(100%, 460px);
  margin: auto;
  padding: 58px 0 32px;
}

.auth-workspace--register .auth-form-wrap {
  padding-top: 36px;
}

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

.auth-heading p {
  color: var(--auth-cyan);
}

.auth-heading h1 {
  margin: 0;
  color: var(--auth-ink);
  font-family: var(--auth-display);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

.auth-heading > span {
  display: block;
  margin-top: 10px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-form {
  width: 100%;
}

.auth-field {
  margin-bottom: 12px;
}

.auth-field > label,
.auth-field__label-row label {
  display: block;
  margin-bottom: 8px;
  color: #303942;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-field__label-row a,
.auth-field__label-row span {
  margin-bottom: 8px;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-field__label-row a {
  color: var(--auth-cyan);
}

.auth-field__label-row a:hover,
.auth-field__label-row a:focus-visible {
  color: var(--auth-cyan-dark);
  text-decoration: underline;
  outline: none;
}

.auth-input-wrap {
  position: relative;
  min-width: 0;
}

.auth-input-wrap input,
.auth-input-wrap select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--auth-ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input-wrap select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5d6974 50%), linear-gradient(135deg, #5d6974 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  cursor: pointer;
}

.auth-input-wrap--password input {
  padding-right: 74px;
}

.auth-input-wrap input::placeholder {
  color: #98a2ac;
}

.auth-input-wrap input:hover,
.auth-input-wrap select:hover {
  border-color: #afbbc4;
}

.auth-input-wrap input:focus,
.auth-input-wrap select:focus {
  border-color: var(--auth-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 127, 150, 0.12);
}

.auth-input-wrap input[aria-invalid="true"] {
  border-color: var(--auth-danger);
  box-shadow: 0 0 0 3px rgba(200, 66, 66, 0.09);
}

.auth-password-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 58px;
  height: 38px;
  place-items: center;
  border-radius: 5px;
  background: transparent;
  color: #5c6874;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: #eaf2f4;
  color: var(--auth-cyan-dark);
  outline: none;
}

.auth-field__error {
  min-height: 18px;
  padding-top: 4px;
  color: var(--auth-danger);
  font-size: 12px;
  line-height: 1.35;
  visibility: hidden;
}

.auth-field__error.is-visible {
  visibility: visible;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  gap: 10px;
}

.auth-code-button {
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid #9db1ba;
  border-radius: 6px;
  background: #edf5f6;
  color: var(--auth-cyan-dark);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-code-button:hover:not(:disabled),
.auth-code-button:focus-visible {
  border-color: var(--auth-cyan);
  background: #def0f2;
  outline: none;
}

.auth-code-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-captcha {
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #9db1ba;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.auth-captcha img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-submit {
  display: grid;
  width: 100%;
  min-height: 54px;
  margin-top: 7px;
  padding: 11px 18px;
  place-items: center;
  border-radius: 6px;
  background: var(--auth-gold);
  color: #211a0b;
  font-family: var(--auth-display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover:not(:disabled),
.auth-submit:focus-visible {
  background: #ffd05a;
  outline: none;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.auth-submit--link {
  text-decoration: none;
}

.auth-complete-mark {
  position: relative;
  width: 66px;
  height: 66px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #e4f3ed;
  box-shadow: inset 0 0 0 1px #b9ddcf;
}

.auth-complete-mark::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 25px;
  width: 13px;
  height: 25px;
  border-right: 4px solid var(--auth-success);
  border-bottom: 4px solid var(--auth-success);
  transform: rotate(45deg);
}

.auth-status {
  min-height: 21px;
  padding-top: 6px;
  color: var(--auth-danger);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.auth-status.is-success {
  color: var(--auth-success);
}

.auth-form-switch {
  margin-top: 22px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.auth-form-switch a {
  color: var(--auth-cyan);
  font-weight: 800;
}

.auth-form-switch a:hover,
.auth-form-switch a:focus-visible {
  color: var(--auth-cyan-dark);
  text-decoration: underline;
  outline: none;
}

.auth-noscript {
  margin-top: 12px;
  color: var(--auth-danger);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: minmax(330px, 38%) minmax(0, 1fr);
  }

  .auth-showcase {
    padding-right: 28px;
    padding-left: 28px;
  }

  .auth-workspace {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    display: block;
  }

  .auth-showcase {
    position: relative;
    display: grid;
    width: 100%;
    height: 230px;
    min-height: 230px;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.72fr);
    grid-template-rows: auto 1fr;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 4px solid var(--auth-gold);
  }

  .auth-brand {
    grid-column: 1 / -1;
  }

  .auth-brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .auth-showcase__visual {
    grid-column: 2;
    grid-row: 2;
    padding: 8px 0 0 12px;
  }

  .auth-showcase__visual img {
    max-height: 132px;
  }

  .auth-showcase__copy {
    align-self: end;
    padding: 16px 18px 0 0;
    border-top: 0;
  }

  .auth-showcase__copy strong {
    font-size: 18px;
  }

  .auth-showcase__copy span {
    display: none;
  }

  .auth-workspace {
    min-height: calc(100vh - 230px);
    min-height: calc(100dvh - 230px);
    padding: 20px 24px 42px;
  }

  .auth-form-wrap,
  .auth-workspace--register .auth-form-wrap {
    padding-top: 38px;
  }
}

@media (max-width: 480px) {
  .auth-showcase {
    height: 196px;
    min-height: 196px;
    grid-template-columns: minmax(0, 1fr) 122px;
    padding: 17px 18px;
  }

  .auth-brand {
    gap: 9px;
    font-size: 13px;
  }

  .auth-brand__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .auth-showcase__visual {
    padding-left: 4px;
  }

  .auth-showcase__visual img {
    max-height: 96px;
  }

  .auth-showcase__copy {
    padding-top: 10px;
  }

  .auth-showcase__copy p {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .auth-showcase__copy strong {
    font-size: 15px;
  }

  .auth-workspace {
    min-height: calc(100vh - 196px);
    min-height: calc(100dvh - 196px);
    padding: 17px 18px 36px;
  }

  .auth-topbar {
    min-height: 38px;
  }

  .auth-switch-link {
    min-width: 104px;
    min-height: 38px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 10px;
  }

  .auth-form-wrap,
  .auth-workspace--register .auth-form-wrap {
    padding-top: 30px;
  }

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

  .auth-heading h1 {
    font-size: 26px;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .auth-code-button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 9px;
  }
}

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