/* Login & signup — Figma 4109:18486–17259 */

.auth-page {
  min-height: 100vh;
  background: #fff;
  color: #1f2933;
  position: relative;
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  height: 20px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.auth-back:hover {
  color: var(--btn-text-hover);
  text-decoration: none;
}

.auth-back:active {
  color: var(--btn-text-active);
}

.auth-back:focus,
.auth-back:focus-visible {
  outline: none;
  color: #1f2933;
  border-color: #1f2933;
}

.auth-back img {
  width: 6px;
  height: 10px;
  display: block;
}

.auth-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 80px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.auth-logo {
  display: block;
  width: 240px;
  height: 53px;
  margin: 0 0 48px;
  line-height: 0;
}

.auth-logo img {
  display: block;
  width: 240px;
  height: 53px;
  max-width: 240px;
  max-height: 53px;
  object-fit: contain;
  filter: none;
}

.auth-title {
  margin: 0 0 8px;
  color: #1f2933;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.auth-lead {
  margin: 0 0 48px;
  max-width: 326px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.auth-lead--wide {
  max-width: 595px;
  font-size: 16px;
  line-height: 20px;
}

.auth-lead--forgot {
  max-width: 283px;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-row + .auth-stack,
.auth-stack + .auth-stack,
.form-group + .auth-stack {
  margin-top: 32px;
}

.auth-form {
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.auth-form--wide {
  width: 600px;
}

.auth-page .form-group {
  gap: 12px;
}

.auth-page .form-label {
  position: relative;
  align-items: center;
}

.auth-page .form-label .req {
  position: absolute;
  left: -14px;
  top: 0;
  width: 10px;
  margin: 0;
  color: #ff383c;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  text-align: right;
}

.auth-form--narrow .form-group + .form-group {
  margin-top: 32px;
}

.auth-input {
  position: relative;
  width: 100%;
}

.auth-input .form-input {
  padding-right: 59px;
}

.auth-input__addon {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 51px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(31, 41, 51, 0.16);
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: #1f2933;
  cursor: default;
}

button.auth-input__addon {
  cursor: pointer;
}

button.auth-input__addon:hover {
  background: var(--btn-alt);
}

button.auth-input__addon:active {
  background: var(--btn-alt-hover);
}

button.auth-input__addon:focus,
button.auth-input__addon:focus-visible {
  outline: none;
  background: var(--btn-alt-hover);
  box-shadow: inset 0 0 0 1px #1f2933;
}

.auth-input__addon img {
  display: block;
  width: 21px;
  height: 17px;
}

.auth-input__addon img[src*="icon-lock"] {
  width: 17px;
  height: 21px;
}

.auth-check {
  margin-top: 32px;
  height: 20px;
  letter-spacing: 0.02em;
}

.auth-page .checkbox {
  align-items: flex-start;
  min-height: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.02em;
}

.auth-form--narrow .form-group + .auth-cta {
  margin-top: 24px;
}

.auth-check + .auth-cta {
  margin-top: 16px;
}

.auth-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 16px;
  padding: 10px 41px 10px 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #1f2933;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-cta img {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 14px;
}

.auth-cta:hover {
  background: rgba(31, 41, 51, 0.7);
  color: #fff;
}

.auth-cta:active {
  background: rgba(31, 41, 51, 0.9);
  color: #fff;
}

.auth-cta:focus,
.auth-cta:focus-visible {
  outline: none;
  background: #1f2933;
  border-color: #8f9499;
}

.auth-cta--md {
  width: 240px;
  margin-top: 32px;
}

.auth-cta--link {
  width: 258px;
}

.auth-forgot,
.auth-switch,
.auth-terms-link {
  color: #1f2933;
  text-decoration: none;
}

.auth-forgot {
  display: block;
  margin-top: 48px;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 0;
}

.auth-forgot:hover {
  color: var(--btn-text-hover);
  text-decoration: none;
}

.auth-forgot:active {
  color: var(--btn-text-active);
}

.auth-forgot:focus,
.auth-forgot:focus-visible {
  outline: none;
  color: var(--btn-text-active);
  border-color: #1f2933;
}

.auth-switch {
  margin-top: 48px;
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  text-align: center;
}

.auth-switch a,
.auth-switch-wide a {
  font-weight: 700;
  color: #1f2933;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
}

.auth-switch a:hover,
.auth-switch-wide a:hover {
  color: var(--btn-text-hover);
  text-decoration: none;
}

.auth-switch a:active,
.auth-switch-wide a:active {
  color: var(--btn-text-active);
}

.auth-switch a:focus,
.auth-switch a:focus-visible,
.auth-switch-wide a:focus,
.auth-switch-wide a:focus-visible {
  outline: none;
  color: var(--btn-text-active);
  border-color: #1f2933;
}

.auth-form--wide .auth-switch-wide {
  margin-top: 48px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.auth-form--wide .auth-alert + .auth-switch-wide {
  margin-top: 24px;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  box-sizing: border-box;
  background: rgba(255, 56, 60, 0.1);
  color: #1f2933;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.auth-alert img {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  flex-shrink: 0;
}

.auth-alert__body {
  min-width: 0;
  flex: 1;
}

.auth-alert ul {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: disc;
}

.auth-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 595px;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-page--status {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-status-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 80px 24px 0;
}

.auth-page--status .auth-logo {
  position: static;
  transform: none;
  margin: 0;
}

.auth-status-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 48px 24px;
}

.auth-status__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 0 32px;
  flex-shrink: 0;
}

.auth-status__icon--expired {
  width: 66px;
}

.auth-status .auth-title {
  margin-bottom: 12px;
}

.auth-status .auth-lead {
  width: 595px;
  max-width: 100%;
  margin-bottom: 0;
}

.auth-status .auth-cta {
  margin-top: 32px;
}

.auth-section-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  color: #1f2933;
}

.auth-section + .auth-section {
  margin-top: 40px;
}

.auth-section--hear,
.auth-section + .auth-section.auth-section--hear {
  margin-top: 64px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}

.auth-section > .form-group + .form-group {
  margin-top: 32px;
}

.auth-row + .auth-row,
.auth-row + .form-group,
.form-group + .auth-row,
.auth-types + .auth-row,
.auth-types + .form-group {
  margin-top: 32px;
}

.auth-span {
  grid-column: 1 / -1;
}

.auth-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.auth-type {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 17px;
  border-radius: 4px;
  border: 1px solid rgba(31, 41, 51, 0.16);
  background: #fff;
  color: #6b7280;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.auth-type:not(.is-selected):hover {
  background: var(--btn-alt);
}

.auth-type:not(.is-selected):active {
  background: var(--btn-alt-hover);
}

.auth-type:not(.is-selected):focus,
.auth-type:not(.is-selected):focus-visible {
  outline: none;
  background: var(--btn-alt-hover);
  border-color: #1f2933;
}

.auth-type.is-selected {
  background: #6b7280;
  border-color: #6b7280;
  color: #fff;
  font-weight: 700;
}

.auth-type.is-selected:hover {
  background: #4b5563;
  border-color: #4b5563;
}

.auth-type.is-selected:active {
  background: #374151;
  border-color: #374151;
}

.auth-type.is-selected:focus,
.auth-type.is-selected:focus-visible {
  outline: none;
  border-color: #1f2933;
}

.auth-type img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.auth-checks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.auth-check-line {
  display: flex;
  align-items: flex-start;
  min-height: 20px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1f2933;
}

.auth-check-line .checkbox {
  display: flex;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

.auth-check-line .checkbox__text {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-check-line .auth-terms-link {
  display: inline;
}

.auth-terms-link {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 20px;
  border: 1px solid transparent;
  border-radius: 0;
}

.auth-terms-link:hover {
  color: var(--btn-text-hover);
  text-decoration: none;
}

.auth-terms-link:active {
  color: var(--btn-text-active);
}

.auth-terms-link:focus,
.auth-terms-link:focus-visible {
  outline: none;
  color: var(--btn-text-active);
  border-color: #1f2933;
}

.auth-form--wide .auth-cta {
  margin-top: 24px;
}

/* Height matches the Country dropdown: the shared main.css cap
   (max-height 288px) applies and the inner .ww-scroll pane scrolls
   internally — no fixed panel height, no content-hugging growth. */
.auth-form--wide [data-hear-select].is-open .ww-select__menu {
  width: 600px;
  max-height: 288px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 51, 0.16);
  box-shadow: 4px 4px 4px 0 rgba(107, 114, 128, 0.08);
}

.auth-form--wide [data-hear-select] .ww-select__option {
  height: 44px;
  padding: 12px 16px;
  box-sizing: border-box;
}

.auth-form--wide [data-hear-select] .ww-select__option.is-active,
.auth-form--wide [data-hear-select] .ww-select__option[aria-selected="true"] {
  height: 40px;
  padding: 10px 16px;
  border-radius: 2px;
}

.auth-section--hear .form-group + .form-group {
  margin-top: 24px;
}

.auth-other[hidden] {
  display: none !important;
}

/* ---------- 720–1279 (Figma auth frames) ---------- */
@media (min-width: 720px) and (max-width: 1279px) {
  .auth-main {
    padding: 80px 32px 96px;
  }

  .auth-back {
    left: 24px;
    top: 24px;
  }

  .auth-form,
  .auth-form--wide {
    max-width: 400px;
  }

  .auth-form--wide {
    max-width: 600px;
  }

  .auth-status-header {
    padding: 48px 24px 0;
  }

  .auth-status-main {
    padding: 40px 24px;
  }
}

/* ---------- ≤719 / 360 (Figma auth mobile) ---------- */
@media (max-width: 719px) {
  .auth-back {
    left: 16px;
    top: 16px;
    gap: 16px;
  }

  .auth-main {
    padding: 72px 16px 64px;
  }

  .auth-logo {
    width: 200px;
    height: auto;
    margin-bottom: 32px;
  }

  .auth-logo img {
    width: 200px;
    height: auto;
    max-width: 200px;
    max-height: none;
  }

  .auth-title {
    font-size: 20px;
    line-height: 25px;
  }

  .auth-lead {
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 18px;
  }

  .auth-form,
  .auth-form--wide {
    width: 318px;
    max-width: 318px;
  }

  .auth-status-header {
    padding: 32px 16px 0;
  }

  .auth-status-main {
    padding: 32px 16px;
  }

  .auth-status {
    width: 100%;
    max-width: 100%;
  }

  .auth-status .auth-cta {
    width: 100%;
    max-width: 240px;
  }

  .auth-status .auth-lead {
    font-size: 16px;
    line-height: 20px;
  }

  .auth-row,
  .auth-types {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .auth-types {
    gap: 16px;
  }

  .auth-forgot {
    margin-top: 32px;
    font-size: 16px;
    line-height: 20px;
  }

  .auth-switch,
  .auth-form--wide .auth-switch-wide {
    margin-top: 32px;
    font-size: 16px;
    line-height: 20px;
  }

  .auth-switch a,
  .auth-form--wide .auth-switch-wide a {
    display: block;
  }

  .auth-cta,
  .auth-cta--md,
  .auth-cta--link {
    width: 100%;
  }

  .auth-page .form-label .req {
    left: -12px;
  }

  .auth-form--wide [data-hear-select].is-open .ww-select__menu {
    width: 100%;
    height: auto;
    max-height: 288px;
    overflow: auto;
  }

  .auth-form--wide [data-hear-select].is-open .ww-select__menu.ww-scroll-wrap {
    overflow: hidden;
  }

  .auth-form--wide
    [data-hear-select].is-open
    .ww-select__menu.ww-scroll-wrap
    > .ww-scroll {
    max-height: 272px;
  }
}
