@font-face {
  font-family: "Cardinal Classic Short";
  src: url("assets/fonts/cardinal-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "proxima-nova";
  src: url("assets/fonts/proxima-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "proxima-nova";
  src: url("assets/fonts/proxima-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #222;
  --large: 36px;
  --small: 18px;
  --x-small: 9px;
  --xx-small: 5px;
  --medium: 27px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--noir);
  background: #f6f6f4;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input { font: inherit; color: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  background: #f6f6f4 url("assets/background.jpg") center top / cover no-repeat;
  background-image: image-set(url("assets/background.webp") type("image/webp"), url("assets/background.jpg") type("image/jpeg"));
  cursor: pointer;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 540px;
  max-width: 100%;
  min-height: 250px;
  max-height: calc(100% - 72px);
  transform: translateX(-50%);
  background: #fff;
  outline: none;
  overflow: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
  transition: transform .3s;
  box-sizing: border-box;
  text-align: left;
}

@media (min-width: 569px) {
  .modal { top: 50%; transform: translate(-50%, -50%); }
}
@media (max-width: 768px) {
  .modal { width: 100%; height: 100%; max-height: 100%; top: 0; }
}

.modal-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.close {
  position: absolute;
  top: var(--x-small);
  right: var(--x-small);
  z-index: 3;
  padding: var(--xx-small);
  border: 0;
  background: rgba(255, 255, 255, .7);
  color: #000;
  fill: #000;
  cursor: pointer;
  line-height: 0;
}
.close svg { display: block; }

.auth-header {
  padding: var(--large) var(--large) 0;
  margin: 0 0 var(--medium);
  text-align: center;
  color: var(--noir);
}
.auth-title {
  margin: 0;
  font-family: "Cardinal Classic Short", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  color: var(--noir);
}
.auth-subtitle {
  margin-top: 9px;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--noir);
}

.auth-body-wrap {
  padding: 0 var(--large) var(--large);
}
.auth-body {
  position: relative;
  z-index: 10;
}
.auth-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 400px;
  max-width: 100%;
  height: 40px;
  padding: 0 9px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: var(--noir);
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: .33px;
  text-transform: none;
  cursor: pointer;
  will-change: opacity;
  transition: opacity .175s linear;
}
.social-btn:hover { opacity: .5; }
.social-icon {
  flex: none;
  width: 18px;
  max-width: none;
  height: 18px;
  margin-right: 9px;
  margin-bottom: 2px;
}
.social-label {
  flex-grow: 1;
  text-align: center;
}
.google-btn {
  border-color: #dadce0;
  color: #3c4043;
  font-family: Roboto, arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .25px;
}
.google-icon { margin-left: 3px; margin-right: 12px; }
.google-btn .social-label { padding-right: 18px; }

.divider {
  position: relative;
  width: 100%;
  height: 3px;
  margin: 27px auto;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #ddd;
  height: 1px;
  z-index: 0;
}
.divider span {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  color: var(--noir);
}

.field-wrap { margin-bottom: 14px; }
.password-wrap[hidden] { display: none; }

.field {
  display: flex;
  height: 50px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-weight: 300;
  transition: background-color .3s, border-color .15s ease-in;
}
.field:focus-within,
.field.filled,
.field.invalid {
  border-color: var(--noir);
}
.field.invalid { border-color: #c00; }

.field-inner {
  position: relative;
  flex-grow: 1;
  min-width: 0;
  margin-left: 18px;
  margin-right: 18px;
}
.password-wrap .field-inner { margin-right: 0; }

.input-container {
  height: 100%;
}
.input-container input {
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--noir);
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  border-radius: 0;
}
.email-wrap .input-container input { padding-top: 15px; }
.input-container input::placeholder { color: #666; opacity: 1; }
.input-container input:-ms-input-placeholder { color: #666; }

.float-label {
  position: absolute;
  top: 0;
  left: 1px;
  z-index: 10;
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #666;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 50px;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: font-size .1s, line-height .1s, top .1s;
}
.field:focus-within .float-label,
.field.filled .float-label {
  top: 8px;
  font-size: 12px;
  line-height: 14px;
}

.eye-wrap {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  font-size: 16px;
  font-weight: 300;
}
.eye-btn {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}
.eye-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.eye-wrap.eye-hidden::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 1px;
  height: 24px;
  background: #666;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.marketing {
  display: flex;
  margin: 0 0 14px;
  padding: 9px 27px 9px 18px;
  background: #f6f3eb;
}
.marketing-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.marketing-label {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--noir);
}
.checkbox {
  flex: none;
  display: flex;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid #bbb;
  background: #fff;
}
.checkmark {
  display: none;
  width: 14px;
  height: 14px;
  margin: auto;
  fill: #fff;
}
.marketing-input:checked + .marketing-label .checkbox {
  border-color: var(--noir);
  background: var(--noir);
}
.marketing-input:checked + .marketing-label .checkmark { display: block; }
.marketing-input:focus-visible + .marketing-label .checkbox { outline: 2px solid #666; }
.marketing-label:hover .checkbox { border-color: var(--noir); }
.marketing-text {
  margin-left: 9px;
  font-size: 14px;
  font-weight: 300;
}

.error {
  margin-top: 0;
  margin-bottom: 0;
  color: #c00;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}
.error:not([hidden]) { margin-top: -5px; margin-bottom: 9px; }

.forgot-row {
  margin: 9px 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.text-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}
.text-btn:hover { color: #c2a661; }

.submit {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 9px;
  padding: 0 36px;
  border: 0;
  border-radius: 0;
  background: #222;
  color: #fff;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 50px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .175s linear;
}
.submit:hover:not(:disabled) { background: #444; }
.submit:disabled { color: #fff; background: #ddd; cursor: not-allowed; }
.submit .submit-label { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-footer {
  width: 100%;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  text-align: left;
}
.signup-btn {
  display: inline-block;
  padding-left: 5px;
  font-weight: 400;
}
.seller {
  display: inline-block;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid #ddd;
}
.seller-link {
  color: #000;
  font-weight: 300;
  text-decoration: underline;
}
.seller-link:hover { color: #c2a661; }

/* Sign-up variant */
.signup-mode .forgot-row { display: none; }
.legal {
  margin: 18px 0 -9px;
  color: #666;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
}
.legal a { color: #666; text-decoration: underline; }

/* Forgot password variant */
.forgot-mode .socials,
.forgot-mode .divider,
.forgot-mode .marketing,
.forgot-mode .forgot-row { display: none; }

.secondary-btn {
  display: none;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  padding: 0 36px;
  border: 2px solid #222;
  border-radius: 0;
  background: #fff;
  color: #222;
  font-family: "proxima-nova", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 46px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color .175s linear, background-color .175s linear;
}
.secondary-btn:hover:not(:disabled) { color: #fff; background: #222; }
.secondary-btn:disabled { color: #ddd; border-color: #ddd; background: #fff; cursor: not-allowed; }
.forgot-mode .secondary-btn { display: block; }
.success-note {
  margin: 14px 0 0;
  color: #222;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 768px) {
  body { overflow: auto; }
  .auth-body-wrap { padding: 0 var(--small) var(--small); }
  .social-btn { width: 400px; max-width: none; }
  .seller { display: block; margin: 0; padding: 0; border-left: 0; }
  .forgot-row { margin: 5px 0; }
  .divider { margin: 18px auto; }
  .field-wrap { margin-bottom: 9px; }
}

@media (max-width: 568px) {
  .forgot-row { margin: 5px 0; }
  .auth-footer { font-size: 14px; text-align: center; }
}

@media (max-width: 430px) {
  .social-btn { font-size: 15px; }
}
