@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/variable/woff2/SUIT-Variable.css");

html,
body {
  min-width: 0;
  background: #ffffff;
}

body,
button,
input {
  font-family: "SUIT Variable", SUIT, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

body {
  color: #161616;
}

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

button,
input {
  border: 0;
  font: inherit;
}

.willow_auth {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  text-align: left;
}

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

.willow_auth_header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 26px;
}

.willow_auth_header_center {
  justify-content: center;
}

.willow_auth_header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.willow_auth_close {
  position: absolute;
  right: 26px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
}

.willow_auth_close span,
.willow_auth_close::before,
.willow_auth_close::after {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111111;
  content: "";
}

.willow_auth_close span {
  display: none;
}

.willow_auth_close::before {
  transform: rotate(45deg);
}

.willow_auth_close::after {
  transform: rotate(-45deg);
}

.willow_auth_back {
  position: absolute;
  left: 26px;
  width: 32px;
  height: 32px;
}

.willow_auth_back::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid #111111;
  border-left: 2px solid #111111;
  content: "";
  transform: rotate(45deg);
}

.willow_auth_body {
  padding: 52px 26px 0;
}

.willow_auth_body h2 {
  margin: 0;
  color: #171717;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.34;
  text-align: left;
}

.willow_auth_bridge .willow_auth_body {
  padding-top: 36px;
}

.willow_login_methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.willow_login_method {
  display: grid;
  min-height: 161px;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 1px solid #e2e2e2;
  border-radius: 13px;
  background: #ffffff;
  color: #777777;
  font-size: 16px;
}

.willow_login_icon {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.willow_auth_links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  color: #777777;
  font-size: 14px;
}

.willow_auth_links a + a {
  position: relative;
}

.willow_auth_links a + a::before {
  position: absolute;
  top: 2px;
  left: -8px;
  width: 1px;
  height: 13px;
  background: #d7d7d7;
  content: "";
}

.willow_auth_brand {
  display: block;
  margin-bottom: 44px;
  line-height: 1;
  text-align: left;
}

.willow_auth_brand img {
  display: block;
  width: 83px;
  height: auto;
}

.willow_auth_simple {
  padding-top: 92px;
}

.willow_auth_simple p,
.willow_auth_notice,
.willow_auth_phone {
  margin: 12px 0 0;
  color: #777777;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.willow_auth_form {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.willow_auth_form input,
.willow_profile_form input[type="tel"],
.willow_profile_form input[type="email"],
.willow_profile_form input[type="text"] {
  width: 100%;
  height: 55px;
  padding: 0 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-size: 16px;
}

.willow_auth_form input::placeholder,
.willow_profile_form input::placeholder {
  color: #a7a7a7;
}

.willow_auth_form button,
.willow_join_submit {
  width: 100%;
  height: 57px;
  border-radius: 7px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.willow_auth_form button:disabled,
.willow_auth_form button.is_disabled {
  background: #bcbcbc;
  cursor: not-allowed;
}

.willow_auth_verify_body {
  padding-top: 80px;
}

.willow_auth_resend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #777777;
  font-size: 14px;
}

.willow_auth_resend::after {
  width: 8px;
  height: 8px;
  border-top: 1px solid #777777;
  border-right: 1px solid #777777;
  content: "";
  transform: rotate(45deg);
}

.willow_auth_illust {
  display: grid;
  width: 119px;
  height: 119px;
  margin: 48px auto 28px;
  place-items: center;
  border-radius: 50%;
  background: #f5f6f8;
}

.willow_auth_illust svg {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: #111111;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.willow_auth_illust rect:nth-child(2) {
  fill: #ff4056;
  stroke: #ff4056;
}

.willow_auth_illust path {
  stroke: #ffffff;
  stroke-width: 3;
}

.willow_auth_phone {
  margin: 0;
  text-align: center;
  font-size: 16px;
}

.willow_auth_code_form {
  gap: 17px;
  margin-top: 46px;
}

.willow_auth_code_wrap {
  position: relative;
}

.willow_auth_code_wrap input {
  padding-right: 76px;
}

.willow_auth_code_wrap span {
  position: absolute;
  top: 50%;
  right: 20px;
  color: #ff3038;
  font-size: 16px;
  transform: translateY(-50%);
}

.willow_auth_notice {
  margin-top: 17px;
  padding-right: 10px;
  padding-left: 2px;
  font-size: 13px;
}

.willow_auth_profile_body {
  padding: 51px 0 0;
}

.willow_profile_form {
  min-height: calc(100vh - 127px);
  padding-bottom: 64px;
}

.willow_auth_section {
  padding: 0 26px 30px;
}

.willow_auth_section + .willow_auth_section {
  border-top: 1px solid #eeeeee;
  padding-top: 36px;
}

.willow_auth_section h2 {
  margin-bottom: 27px;
}

.willow_auth_section label:not(.willow_agree_all):not(.willow_agree_item_label) {
  display: block;
  margin: 18px 0 9px;
  font-size: 14px;
  font-weight: 700;
}

.willow_auth_section p {
  margin: 10px 0 0;
  color: #777777;
  font-size: 13px;
}

.willow_agree_section h2 {
  margin-bottom: 24px;
}

.willow_agree_all,
.willow_agree_item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  gap: 11px;
  color: #8b8b8b;
  font-size: 14px;
}

.willow_agree_item_label {
  display: contents;
  cursor: pointer;
}

.willow_agree_all em,
.willow_agree_item em {
  min-width: 0;
  font-style: normal;
  line-height: 1.45;
}

.willow_agree_all {
  grid-template-columns: 26px minmax(0, 1fr);
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 13px;
}

.willow_agree_item b {
  color: #ff3038;
  font-weight: 500;
}

.willow_agree_all input,
.willow_agree_item input {
  position: absolute;
  opacity: 0;
}

.willow_agree_all span,
.willow_agree_item span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e8e8e8;
}

.willow_agree_all span::before,
.willow_agree_item span::before {
  width: 9px;
  height: 6px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.willow_agree_all input:checked + span,
.willow_agree_item input:checked + span {
  background: #111111;
}

.willow_terms_open {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: transparent;
}

.willow_terms_open i {
  width: 8px;
  height: 8px;
  border-top: 1px solid #8b8b8b;
  border-right: 1px solid #8b8b8b;
  transform: rotate(45deg);
}

.willow_terms_opened {
  overflow: hidden;
}

.willow_terms_modal[hidden] {
  display: none;
}

.willow_terms_modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-items: end;
}

.willow_terms_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.willow_terms_panel {
  position: relative;
  z-index: 1;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.16);
}

.willow_terms_panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #eeeeee;
}

.willow_terms_panel h2 {
  margin: 0;
  color: #111111;
  font-size: 18px;
  font-weight: 800;
}

.willow_terms_close {
  position: relative;
  width: 30px;
  height: 30px;
  background: transparent;
}

.willow_terms_close::before,
.willow_terms_close::after {
  position: absolute;
  top: 14px;
  left: 7px;
  width: 16px;
  height: 1px;
  background: #111111;
  content: "";
}

.willow_terms_close::before {
  transform: rotate(45deg);
}

.willow_terms_close::after {
  transform: rotate(-45deg);
}

.willow_terms_content {
  max-height: calc(72vh - 67px);
  overflow-y: auto;
  padding: 20px 24px 32px;
  color: #555555;
  font-size: 14px;
  line-height: 1.7;
}

.willow_terms_content p {
  margin: 0 0 14px;
}

.willow_join_submit {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  margin: 0 auto;
  border-radius: 0;
}

@media (min-width: 1180px) {
  html,
  body {
    background:
      linear-gradient(90deg, rgba(255, 245, 133, 0.18) 0 1px, transparent 1px 100%),
      linear-gradient(180deg, #f7f3ea 0%, #f4f1ec 52%, #efebe4 100%);
    background-size: 74px 100%, 100% 100%;
  }

  body {
    overflow-x: hidden;
  }

  .willow_auth {
    width: 390px;
    max-width: 390px;
    margin-right: auto;
    margin-left: calc(50% + 40px);
    overflow-x: hidden;
    box-shadow: 0 18px 55px rgba(34, 28, 22, 0.13);
  }

  .willow_join_submit {
    right: auto;
    left: calc(50% + 235px);
    width: 390px;
    max-width: 390px;
    transform: translateX(-50%);
  }
}

@media (max-width: 360px) {
  .willow_auth_body,
  .willow_auth_section,
  .willow_auth_header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .willow_login_methods {
    gap: 12px;
  }
}
