.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal[hidden] {
  display: none !important;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal .panel {
  width: 100%;
  background: #ffffff;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 1.5rem 5rem rgba(7, 7, 7, 0.2);
  max-height: 82vh;
  overflow: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.modal.is-open .panel {
  transform: translateY(0);
}
@media (min-width: 48rem) {
  .modal {
    align-items: center;
    padding: 1.5rem;
  }
  .modal .panel {
    width: min(100%, 33.75rem);
    border-radius: 1.5rem;
    padding: 2rem;
    max-height: 90vh;
    transform: translateY(0);
  }
}
.modal .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  color: #070707;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@supports selector(:focus-visible) {
  .modal .close:focus-visible {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
  .modal .close:focus:not(:focus-visible) {
    outline: none;
    outline-offset: 0;
  }
}
@supports not selector(:focus-visible) {
  .modal .close:focus {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
}

.auth-modal {
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
.auth-modal [hidden] {
  display: none !important;
}
.auth-modal button {
  font-family: inherit;
}
.auth-modal .title {
  font-weight: 700;
  margin-bottom: 2rem;
}
.auth-modal .sent {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.auth-modal .sent-icon {
  width: 5rem;
  height: auto;
  margin: 0 auto;
  display: block;
}
.auth-modal .sent-copy {
  display: grid;
  gap: 1rem;
}
.auth-modal .sent-title {
  font-weight: 700;
  margin: 0;
}
.auth-modal .sent-text {
  color: #3d3d3d;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.auth-modal .form {
  display: grid;
  gap: 1.25rem;
  row-gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.auth-modal [data-auth-view] {
  display: contents;
}
.auth-modal [data-auth-view][hidden] {
  display: none !important;
}
.auth-modal .intro {
  color: #3d3d3d;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.auth-modal .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.auth-modal .checkbox-group {
  display: grid;
  gap: 1rem;
}
.auth-modal .link {
  color: #3d3d3d;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}
.auth-modal .link:hover {
  color: #070707;
}
.auth-modal .link-reset {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.auth-modal .accent {
  color: #ff5500;
  font-weight: 600;
}
.auth-modal .submit {
  width: 100%;
  display: flex;
  justify-content: center;
}
.auth-modal .back-link-wrapper {
  display: flex;
  justify-content: center;
}
.auth-modal .back-link {
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  padding: 0;
  color: #bf4000;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.auth-modal .back-link:hover {
  color: #591e00;
}
@supports selector(:focus-visible) {
  .auth-modal .back-link:focus-visible {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
  .auth-modal .back-link:focus:not(:focus-visible) {
    outline: none;
    outline-offset: 0;
  }
}
@supports not selector(:focus-visible) {
  .auth-modal .back-link:focus {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
}
.auth-modal .divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: #8f8f8f;
  font-weight: 600;
}
.auth-modal .divider::before,
.auth-modal .divider::after {
  content: "";
  flex: 1;
  height: 0.0625rem;
  background: #e7e7e7;
}
.auth-modal .socials {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.auth-modal .social {
  border: none;
  background: #f5f5f5;
  border-radius: 3rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #070707;
  cursor: pointer;
}
@supports selector(:focus-visible) {
  .auth-modal .social:focus-visible {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
  .auth-modal .social:focus:not(:focus-visible) {
    outline: none;
    outline-offset: 0;
  }
}
@supports not selector(:focus-visible) {
  .auth-modal .social:focus {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
}
.auth-modal .social img {
  width: 1.5rem;
  height: 1.5rem;
}
.auth-modal .footer {
  text-align: center;
  color: #5c5c5c;
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
  background: transparent;
  display: block;
}
.auth-modal .link-button {
  border: none;
  background: none;
  padding: 0;
  color: #ff5500;
  font-weight: 600;
  cursor: pointer;
}

.atom-input {
  display: grid;
  gap: 0.5rem;
}
.atom-input .label {
  font-weight: 600;
}
.atom-input input {
  border: 0.0625rem solid #e7e7e7;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #070707;
}
@supports selector(:focus-visible) {
  .atom-input input:focus-visible {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
  .atom-input input:focus:not(:focus-visible) {
    outline: none;
    outline-offset: 0;
  }
}
@supports not selector(:focus-visible) {
  .atom-input input:focus {
    outline: 0.125rem solid #ff5500;
    outline-offset: 0.125rem;
  }
}

.atom-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #3d3d3d;
  cursor: pointer;
}
.atom-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.atom-checkbox .box {
  width: 1.25rem;
  height: 1.25rem;
  border: 0.0625rem solid #8f8f8f;
  flex-shrink: 0;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.atom-checkbox .text {
  margin-top: 0.125rem;
}
.atom-checkbox input:checked + .box {
  background: #ff5500;
  border-color: #ff5500;
  box-shadow: inset 0 0 0 0.125rem #ffffff;
}

.auth-error {
  background: #fee2e2;
  border: 0.0625rem solid #f87171;
  border-left: 0.25rem solid #dc2626;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7f1d1d;
  line-height: 1.5;
}
.auth-error[hidden] {
  display: none !important;
}
.auth-error__link {
  border: none;
  background: none;
  padding: 0;
  color: #ff5500;
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.auth-error__link:hover {
  color: #bf4000;
}
