:root {
  color: #171717;
  background: #ececec;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/roboto-slab-latin-700-normal.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

a {
  color: #1559b7;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 10% 0%, rgb(255 255 255 / 70%), transparent 36%),
    #ececec;
}

.auth-card {
  width: min(100%, 1040px);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
  overflow: hidden;
  /*border: 1px solid rgb(0 0 0 / 5%);*/
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgb(0 0 0 / 10%);
}

.auth-art {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-right: 1px solid #eaeaea;
  background: #2f402b;
}

.auth-art__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-art__caption {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 14px;
  color: #fff;
  background: rgb(16 25 21 / 45%);
  backdrop-filter: blur(14px);
}

.auth-art__caption strong {
  font-size: 1.2rem;
}

.auth-art__eyebrow,
.auth-heading__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 750;
}

.auth-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 54px 40px;
}

.brand {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #202020;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.brand__logo {
  width: 30px;
  height: 30px;
  display: block;
}

.auth-content__inner {
  width: min(100%, 390px);
  margin: auto;
  padding: 32px 0;
  padding-top:4px
}

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

.auth-heading__eyebrow {
  margin: 0 0 9px;
  color: #6e766f;
}

.auth-heading h1 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-heading h2 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  /*font-size: clamp(1.7rem, 3vw, 2.1rem);*/
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-heading p:last-child {
  margin: 11px 0 0;
  color: #737373;
  font-size: 0.88rem;
}

.auth-heading__email {
  display: block;
  margin-top: 5px;
  color: #303632;
  font-weight: 650;
}

.auth-form,
.field {
  display: grid;
}

.auth-form {
  gap: 17px;
}

.field {
  gap: 7px;
}

.field label,
.field__label-row {
  font-size: 0.82rem;
  font-weight: 620;
}

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

.field input,
.password-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #d9d9d9;
  border-radius: 11px;
  outline: none;
  padding: 0 14px;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field input:focus,
.password-field input:focus {
  border-color: #566b61;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(58 86 73 / 11%);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  color: #6c6c6c;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle.is-active {
  color: #111;
  background: #ececec;
}

.password-toggle svg {
  width: 18px;
  fill: currentColor;
}

.field__hint,
.field__error,
.cookie-note {
  font-size: 0.75rem;
  line-height: 1.45;
}

.field__hint,
.cookie-note {
  color: #777;
}

.field__error,
.validation-summary {
  color: #a22626;
}

.field__error:empty,
.validation-summary:empty,
.validation-summary-valid {
  display: none;
}

.validation-summary {
  padding: 11px 13px;
  border: 1px solid #f0c8c8;
  border-radius: 9px;
  background: #fff6f6;
  font-size: 0.8rem;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.status-message {
  margin: -12px 0 18px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.status-message--success {
  border-color: #bed9c4;
  color: #285d34;
  background: #f2fbf4;
}

.status-message--error {
  border-color: #f0c8c8;
  color: #a22626;
  background: #fff6f6;
}

.pin-entry {
  position: relative;
  width: 100%;
  cursor: text;
}

.pin-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pin-slot {
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 11px;
  color: #171717;
  background: #fafafa;
  font-size: 1.35rem;
  font-weight: 720;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.pin-slot.is-filled {
  background: #fff;
}

.pin-entry:focus-within .pin-slot.is-current {
  border-color: #566b61;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(58 86 73 / 11%);
}

.pin-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  caret-color: transparent;
  opacity: 0.01;
}

.resend-form {
  margin-top: 22px;
  text-align: center;
  font-size: 0.8rem;
}

.resend-form p {
  margin: 0 0 5px;
  color: #777;
}

.text-button {
  border: 0;
  padding: 3px;
  color: #1559b7;
  background: transparent;
  font-weight: 620;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.text-button:disabled {
  color: #888;
  cursor: default;
  text-decoration: none;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #444;
  font-size: 0.8rem;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #17251f;
}

.check-row--terms {
  margin-top: 2px;
}

.muted-link {
  color: #777;
  font-weight: 450;
  cursor: not-allowed;
}

.primary-button,
.social-button {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 680;
  cursor: pointer;
  transition: transform 100ms ease, background 100ms ease, border-color 100ms ease;
}

.primary-button {
  border: 1px solid #111;
  color: #fff;
  background: #111;
}

.primary-button:hover:not(:disabled) {
  background: #2b2b2b;
}

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

.submit-spinner {
  width: 18px;
  height: 18px;
  display: none;
  border: 2px solid rgb(255 255 255 / 42%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: submit-spinner-rotation 650ms linear infinite;
}

.primary-button[data-loading="true"] [data-submit-label] {
  display: none;
}

.primary-button[data-loading="true"] .submit-spinner {
  display: block;
}

@keyframes submit-spinner-rotation {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .submit-spinner {
    animation-duration: 1.4s;
  }
}

.primary-button:active,
.social-button:active {
  transform: translateY(1px);
}

.primary-button--link {
  text-decoration: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 15px;
  color: #888;
  font-size: 0.72rem;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: #e8e8e8;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.social-button {
  gap: 7px;
  border: 1px solid #dedede;
  color: #292929;
  background: #fff;
  font-size: 0.78rem;
}

.social-button:hover:not(:disabled) {
  border-color: #aaa;
  background: #f8f8f8;
}

.social-button:disabled {
  color: #8a8a8a;
  background: #f7f7f7;
  cursor: not-allowed;
  opacity: 0.62;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #333;
  font-size: 0.68rem;
  font-weight: 800;
}

.social-icon--google { background: #4285f4; }
.social-icon--microsoft { background: #00a4ef; }
.social-icon--apple { background: #111; }

.cookie-note {
  margin: 16px 0 0;
  text-align: center;
}

.auth-footer {
  margin: 0;
  color: #999;
  text-align: center;
  font-size: 0.68rem;
}

@media (max-width: 840px) {
  .auth-shell {
    padding: 24px;
  }

  .auth-card {
    width: min(100%, 520px);
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-art {
    display: none;
  }

  .auth-content {
    min-height: min(720px, calc(100vh - 48px));
    padding: 28px 38px 22px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    display: block;
    padding: 0;
    background: #fff;
  }

  .auth-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-content {
    min-height: 100vh;
    padding: 24px 22px 20px;
  }

  .auth-content__inner {
    padding: 38px 0 26px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .pin-slots {
    gap: 6px;
  }

  .pin-slot {
    height: 50px;
    border-radius: 9px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 180ms;
  }
}
