.sf-auth-sheet[hidden] {
  display: none;
}

.sf-auth-sheet {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.sf-auth-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(24, 20, 18, 0.42);
  opacity: 0;
  cursor: default;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 260ms ease, backdrop-filter 260ms ease;
}

.sf-auth-sheet__dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  padding: 22px 34px 28px;
  border: 1px solid rgba(137, 91, 75, 0.14);
  border-radius: 28px 28px 22px 22px;
  background:
    radial-gradient(circle at 92% 4%, rgba(195, 122, 107, 0.12), transparent 31%),
    linear-gradient(180deg, #fffdfa 0%, #fff 52%, #fbf7f2 100%);
  box-shadow: 0 30px 80px rgba(31, 22, 18, 0.28), 0 2px 12px rgba(31, 22, 18, 0.08);
  opacity: 0;
  transform: translate3d(0, calc(100% + 40px), 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  pointer-events: auto;
  overscroll-behavior: contain;
}

.sf-auth-sheet.is-open {
  pointer-events: auto;
}

.sf-auth-sheet.is-open .sf-auth-sheet__backdrop {
  opacity: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sf-auth-sheet.is-open .sf-auth-sheet__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.sf-auth-sheet__handle {
  width: 44px;
  height: 5px;
  margin: -8px auto 16px;
  border-radius: 999px;
  background: rgba(72, 53, 46, 0.2);
}

.sf-auth-sheet__close {
  position: absolute;
  top: 17px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(73, 52, 45, 0.06);
  color: #4b3932;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.sf-auth-sheet__close:hover,
.sf-auth-sheet__close:focus-visible {
  background: rgba(195, 122, 107, 0.14);
  transform: rotate(4deg);
}

.sf-auth-sheet__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #8f5a4e;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-auth-sheet__brand-icon {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(195, 122, 107, 0.12);
  place-items: center;
}

.sf-auth-sheet__brand-icon .material-icons {
  font-size: 17px;
}

.sf-auth-sheet__header {
  margin-bottom: 24px;
}

.sf-auth-sheet__eyebrow {
  margin: 0 0 7px;
  color: #a46859;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-auth-sheet__title {
  margin: 0;
  color: #201915;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.65rem, 5.6vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.sf-auth-sheet__subtitle {
  margin: 10px 0 0;
  color: #786861;
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.sf-auth-sheet__subtitle strong {
  color: #3b2c27;
  font-weight: 700;
}

.sf-auth-sheet__form {
  display: grid;
  gap: 12px;
}

.sf-auth-sheet__label {
  color: #43332d;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.sf-auth-sheet__mobile-control {
  display: flex;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(88, 63, 54, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 28px rgba(73, 47, 38, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sf-auth-sheet__mobile-control:focus-within {
  border-color: #c37a6b;
  box-shadow: 0 0 0 4px rgba(195, 122, 107, 0.12);
}

.sf-auth-sheet__mobile-control.is-invalid {
  border-color: #ba4e48;
}

.sf-auth-sheet__prefix {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10px 0 14px;
  border: none;
  border-right: 1px solid rgba(88, 63, 54, 0.13);
  background: transparent;
  color: #32241f;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 750;
  flex: 0 0 20%;
  width: 20%;
  max-width: 20%;
  cursor: pointer;
  outline: none;
}

.sf-auth-sheet__prefix:focus-visible {
  background: rgba(195, 122, 107, 0.08);
}

.sf-auth-sheet__prefix-text {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.sf-auth-sheet__prefix-icon {
  font-size: 18px;
  color: #32241f;
  margin-left: 2px;
  flex: 0 0 auto;
}

.sf-auth-country-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sf-auth-country-modal[hidden] {
  display: none;
}
.sf-auth-country-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.6);
  cursor: pointer;
}
.sf-auth-country-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100dvh - 80px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(31, 22, 18, 0.15), 0 0 0 1px rgba(255,255,255,0.2) inset;
  overflow: hidden;
  animation: sf-country-modal-in 100ms ease-out;
}
@keyframes sf-country-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sf-auth-country-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(88, 63, 54, 0.1);
}
.sf-auth-country-modal__header h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #201915;
}
.sf-auth-country-modal__close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(73, 52, 45, 0.06);
  color: #4b3932;
  place-items: center;
  cursor: pointer;
  transition: all 200ms ease;
}
.sf-auth-country-modal__close:hover {
  background: rgba(195, 122, 107, 0.14);
  transform: rotate(90deg);
}
.sf-auth-country-modal__search {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(88, 63, 54, 0.08);
  background: rgba(255,255,255,0.4);
}
.sf-auth-country-modal__search .material-icons {
  color: #8e807a;
  font-size: 20px;
  margin-right: 12px;
}
.sf-auth-country-modal__search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: #32241f;
  outline: none;
}
.sf-auth-country-modal__list {
  list-style: none;
  margin: 0;
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}
.sf-auth-country-modal__list li {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  font-family: "Manrope", sans-serif;
}
.sf-auth-country-modal__list li:hover {
  background: rgba(195, 122, 107, 0.08);
  transform: translateX(4px);
}
.sf-auth-country-modal__list li span:first-child {
  font-weight: 750;
  color: #32241f;
  width: 60px;
}
.sf-auth-country-modal__list li span:last-child {
  color: #6a564e;
  font-size: 0.9rem;
}

.sf-auth-sheet__prefix-select:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(195, 122, 107, 0.4);
}

.sf-auth-sheet__mobile-input {
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #241a16;
  font-family: "Manrope", sans-serif;
  font-size: 1.06rem !important;
  font-weight: 650;
  letter-spacing: 0.035em;
  flex: 1 1 auto;
}

.sf-auth-sheet__mobile-input::placeholder {
  color: #aa9d97;
  font-weight: 500;
  letter-spacing: 0;
}

.sf-auth-sheet__primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #c47b6c 0%, #a95f51 100%);
  color: #fff;
  box-shadow: 0 13px 30px rgba(169, 95, 81, 0.25);
  font-family: "Manrope", sans-serif;
  font-size: 0.93rem;
  font-weight: 750;
  gap: 9px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.sf-auth-sheet__primary:hover,
.sf-auth-sheet__primary:focus-visible {
  box-shadow: 0 16px 34px rgba(169, 95, 81, 0.32);
  transform: translateY(-1px);
}

.sf-auth-sheet__primary:disabled,
.sf-auth-sheet__primary.is-loading {
  opacity: 0.66;
  cursor: wait;
  transform: none;
}

.sf-auth-sheet__primary .material-icons {
  font-size: 19px;
}

.sf-auth-sheet__consent {
  margin: 4px 4px 0;
  color: #91827b;
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: center;
}

.sf-auth-sheet__consent a {
  color: #915b4f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sf-auth-sheet__step {
  display: none;
}

.sf-auth-sheet__step.is-active {
  display: block;
  border-radius: 20px;
  background-color: transparent !important;
  animation: sf-auth-step-in 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sf-auth-step-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sf-auth-sheet__back {
  display: inline-flex;
  align-items: center;
  margin: -5px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8d5a4e;
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 5px;
  cursor: pointer;
}

.sf-auth-sheet__back .material-icons {
  font-size: 17px;
}

.sf-auth-sheet__otp-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sf-auth-sheet__otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.sf-auth-sheet__otp-box {
  width: 100% !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(88, 63, 54, 0.2) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #281d19;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem !important;
  font-weight: 700;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sf-auth-sheet__otp-box:focus {
  border-color: #c37a6b !important;
  box-shadow: 0 0 0 4px rgba(195, 122, 107, 0.12) !important;
  transform: translateY(-1px);
}

.sf-auth-sheet__otp.is-invalid .sf-auth-sheet__otp-box {
  border-color: #ba4e48 !important;
}

.sf-auth-sheet__otp-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 16px;
  color: #86766f;
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  gap: 5px 12px;
}

.sf-auth-sheet__resend {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #9d5d50;
  font-family: inherit;
  font-size: inherit;
  font-weight: 750;
  cursor: pointer;
}

.sf-auth-sheet__resend:disabled {
  color: #b4a9a4;
  cursor: default;
}

[data-auth-resend-countdown] {
  grid-column: 1 / -1;
  text-align: right;
}

.sf-auth-sheet__field-error {
  min-height: 18px;
  margin: -5px 2px 0;
  color: #aa4541;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  line-height: 1.4;
}

.sf-auth-sheet__status {
  margin: -5px 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(67, 124, 89, 0.16);
  border-radius: 12px;
  background: rgba(67, 124, 89, 0.08);
  color: #356744;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.sf-auth-sheet__status.is-error {
  border-color: rgba(170, 69, 65, 0.16);
  background: rgba(170, 69, 65, 0.07);
  color: #943d39;
}

.sf-auth-sheet__secure-note {
  display: flex;
  align-items: center;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid rgba(88, 63, 54, 0.1);
  color: #8e807a;
  font-family: "Manrope", sans-serif;
  font-size: 0.69rem;
  line-height: 1.4;
  gap: 8px;
}

.sf-auth-sheet__secure-note .material-icons {
  color: #af7568;
  font-size: 17px;
}

.sf-auth-sheet__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (min-width: 601px) {
  .sf-auth-sheet {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .sf-auth-sheet {
    padding: 0;
  }

  .sf-auth-sheet__dialog {
    width: 100%;
    max-height: min(760px, calc(100dvh - 12px));
    padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 26px 26px 0 0;
  }

  .sf-auth-sheet__brand {
    margin-bottom: 16px;
  }

  .sf-auth-sheet__header {
    margin-bottom: 20px;
  }

  .sf-auth-sheet__otp {
    gap: 7px;
  }

  .sf-auth-sheet__otp-box {
    height: 52px !important;
    border-radius: 12px !important;
    font-size: 1.16rem !important;
  }
}

@media (max-width: 370px) {
  .sf-auth-sheet__dialog {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sf-auth-sheet__otp {
    gap: 5px;
  }

  .sf-auth-sheet__otp-box {
    height: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-auth-sheet__backdrop,
  .sf-auth-sheet__dialog {
    transition-duration: 1ms;
  }

  .sf-auth-sheet__step.is-active {
    animation: none;
  }
}
