/* Society authentication redesign (login, sign up, recovery, terms). */

.auth-body {
  margin: 0;
  background: #041538;
  color: #fff;
}

.auth-redesign {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: #041538;
  color: #fff;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.auth-redesign,
.auth-redesign *,
.auth-redesign *::before,
.auth-redesign *::after {
  box-sizing: border-box;
}

.auth-panel {
  flex: 1 1 50%;
  max-width: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 40px 40px;
  background: #041538;
  overflow: visible;
}

.auth-header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-logo {
  display: inline-block;
  line-height: 0;
}

.auth-logo img {
  width: 196px;
  height: auto;
  display: block;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #fff;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.auth-back:hover,
.auth-back:focus {
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
}

.auth-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 28px 0 12px;
}

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

.auth-form-wrap.is-wide {
  max-width: 640px;
}

.auth-hero {
  flex: 1 1 50%;
  max-width: 50%;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: #041538;
}

.auth-hero img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.auth-title {
  margin: 0 0 28px;
  padding: 0;
  font-family: "Canela", "Times New Roman", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
  color: #fff;
}

.auth-title.is-compact {
  margin-bottom: 12px;
}

.auth-intro {
  margin: 0 0 28px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.auth-form-wrap.is-wide .auth-intro {
  max-width: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.auth-label,
.auth-label-row {
  margin-bottom: 6px;
}

.auth-label {
  display: block;
  color: #a8b0b8;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  padding: 0;
}

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

.auth-label-row .auth-label {
  margin-bottom: 0;
}

.auth-forgot {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot:hover,
.auth-forgot:focus {
  color: #fff;
  text-decoration: underline;
}

.auth-control {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #273756;
  color: #fff;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  outline: none;
  box-shadow: none;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.auth-control::placeholder {
  color: #a8b0b8;
  opacity: 1;
  font-weight: 400;
}

.auth-control:focus,
.auth-control.is-invalid,
.auth-field:has(label.error:not(:empty)) .auth-control,
.auth-password:has(+ label.error:not(:empty)) .auth-control,
.auth-select:has(+ label.error:not(:empty)) .auth-select-trigger,
.auth-field:has(label.error:not(:empty)) .auth-select-trigger {
  border-color: #0f3d8b;
}

.auth-control.is-invalid,
.auth-field:has(label.error:not(:empty)) .auth-control,
.auth-password:has(+ label.error:not(:empty)) .auth-control,
.auth-field:has(label.error:not(:empty)) .auth-select-trigger {
  border-color: #e74d3c;
}

.auth-field:has(label.error:not(:empty)) .iti input,
.auth-field:has(label.error:not(:empty)) .iti input[type="tel"] {
  border-color: #e74d3c !important;
}

.auth-control:-webkit-autofill,
.auth-control:-webkit-autofill:hover,
.auth-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #273756 inset;
  transition: background-color 9999s ease-out;
}

.auth-password {
  position: relative;
}

.auth-password .auth-control {
  padding-right: 44px;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.auth-eye:hover,
.auth-eye:focus-visible {
  color: #fff;
}

.auth-eye svg {
  display: block;
}

.auth-eye .auth-eye-off {
  display: none;
}

.auth-eye.is-visible .auth-eye-open {
  display: none;
}

.auth-eye.is-visible .auth-eye-off {
  display: block;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.auth-grid .auth-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.auth-btn-primary {
  background: #0f3d8b;
  border-color: #0f3d8b;
  color: #fff;
}

.auth-btn-primary:hover,
.auth-btn-primary:focus-visible {
  background: #062060;
  border-color: #062060;
  color: #fff;
  text-decoration: none;
}

.auth-btn-primary:disabled {
  background: #6c757d;
  border-color: #6c757d;
  color: #fff;
  cursor: not-allowed;
}

.auth-btn-secondary {
  background: transparent;
  border-color: #495057;
  color: #fff;
}

.auth-btn-secondary:hover,
.auth-btn-secondary:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #041538;
  text-decoration: none;
}

.auth-or {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 20px;
}

.auth-alert {
  margin: 0 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(231, 77, 60, 0.55);
  border-radius: 6px;
  background: rgba(231, 77, 60, 0.16);
  color: #ffd5d2;
  font-size: 13px;
  line-height: 18px;
}

.auth-alert p {
  margin: 0;
}

.auth-alert p + p {
  margin-top: 4px;
}

.auth-redesign label.error {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  color: #ffb4ae !important;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
}

.auth-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #e1f0e8;
  color: #2e8b57;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.auth-banner svg {
  flex: 0 0 auto;
}

.auth-success-copy {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 22px;
}

.auth-rules {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.auth-rules li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 18px;
  list-style: none;
}

.auth-rules svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-select {
  position: relative;
}

.auth-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.auth-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #273756;
  color: #fff;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.auth-select-trigger:focus,
.auth-select-trigger[aria-expanded="true"] {
  border-color: #0f3d8b;
  outline: none;
}

.auth-select-value.is-placeholder {
  color: #a8b0b8;
}

.auth-select-chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.15s ease;
}

.auth-select-trigger[aria-expanded="true"] .auth-select-chevron {
  transform: rotate(180deg);
}

.auth-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(4, 21, 56, 0.18);
  max-height: 220px;
  overflow: auto;
}

.auth-select-menu[hidden] {
  display: none;
}

.auth-select-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #041538;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.auth-select-option:hover,
.auth-select-option:focus,
.auth-select-option.is-active {
  background: #f2f6fc;
  outline: none;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.auth-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.auth-check-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: transparent;
}

.auth-check input:checked + .auth-check-box {
  border-color: #0f3d8b;
  background: #0f3d8b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.2 6.1 4.7 8.6 9.8 3.4' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.auth-check input:focus-visible + .auth-check-box {
  outline: 2px solid #88a6db;
  outline-offset: 2px;
}

.auth-redesign.is-terms .auth-panel {
  max-width: none;
  flex-basis: 100%;
}

.auth-redesign.is-terms .auth-main {
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
}

.auth-redesign.is-terms .auth-form-wrap {
  max-width: 640px;
}

.auth-terms-meta {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 20px;
}

.auth-terms-body {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 22px;
}

.auth-terms-body p {
  margin: 0 0 14px;
}

.auth-terms-body h3,
.auth-terms-body h4 {
  margin: 22px 0 10px;
  padding: 0;
  font-family: "Canela", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  color: #fff;
}

.auth-terms-body h3 {
  font-size: 22px;
  line-height: 28px;
}

.auth-terms-body h4 {
  font-size: 18px;
  line-height: 24px;
}

.auth-terms-body ul {
  margin: 0 0 16px;
  padding-left: 18px;
  list-style: disc;
}

.auth-terms-body li {
  margin: 0 0 10px;
  padding: 0;
  list-style: disc;
  color: rgba(255, 255, 255, 0.82);
}

.auth-redesign .iti {
  width: 100%;
  display: block;
  color: #fff;
}

.auth-redesign .iti__tel-input,
.auth-redesign .iti input,
.auth-redesign .iti input[type="tel"] {
  width: 100% !important;
  height: 44px !important;
  padding: 10px 12px 10px 68px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: #273756 !important;
  color: #fff !important;
  font-family: "Inter", "Trade Gothic LT Pro", "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.auth-redesign .iti input::placeholder {
  color: #a8b0b8 !important;
  opacity: 1;
}

.auth-redesign .iti input:focus {
  border-color: #0f3d8b !important;
  outline: none !important;
}

.auth-redesign .iti__selected-country,
.auth-redesign .iti__country-container {
  background-color: transparent !important;
}

.auth-redesign .iti__arrow,
.auth-redesign .iti__arrow--up {
  border-top-color: #fff;
}

.auth-redesign .iti--allow-dropdown .iti__country-container {
  left: 0;
  right: auto;
}

.auth-redesign .iti__dropdown-content,
.auth-redesign .iti__country-list {
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #041538;
  box-shadow: 0 12px 32px rgba(4, 21, 56, 0.18);
  max-height: 240px;
  overflow: auto;
}

.auth-redesign .iti__country {
  padding: 8px 12px;
  color: #041538;
}

.auth-redesign .iti__country-name,
.auth-redesign .iti__dial-code {
  color: #041538;
  font-size: 14px;
}

.auth-redesign .iti__dial-code {
  color: #495057;
}

.auth-redesign .iti__country.iti__highlight,
.auth-redesign .iti__country:hover {
  background: #f2f6fc;
}

.auth-redesign .iti__flag-box {
  margin-right: 8px;
}

.auth-redesign .iti__selected-country {
  height: 44px;
  padding: 0 8px 0 12px;
  border-radius: 6px 0 0 6px;
}

.auth-body .iti--container {
  z-index: 50;
}

.auth-body .iti__dropdown-content,
.auth-body .iti__country-list {
  background: #fff;
  color: #041538;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(4, 21, 56, 0.18);
}

.auth-body .iti__country-name {
  color: #041538;
}

.auth-body .iti__dial-code {
  color: #495057;
}

.auth-body .iti__country.iti__highlight,
.auth-body .iti__country:hover {
  background: #f2f6fc;
}

@media (max-width: 960px) {
  .auth-redesign {
    flex-direction: column;
  }

  .auth-panel,
  .auth-hero {
    max-width: 100%;
    flex-basis: auto;
  }

  .auth-hero {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 24px 20px 32px;
  }

  .auth-title {
    font-size: 34px;
  }

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