/* Shared by every auth page (sign up, sign up by email, sign in, ...).
   Three genuinely different layouts per breakpoint, not just a reflow of
   the same one — Figma treats each differently:
   - Desktop: split screen, illustration as a fixed-width side panel.
   - Tablet: illustration as a full-bleed background behind a floating card.
   - Mobile: no illustration at all, plain centered content. */

body {
  margin: 0;
  background: #f2eee9;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #02020b;
}

.auth-illustration { display: none; }

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 362px;
}

.auth-content { width: 100%; }

.auth-cancel {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #02020b;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 40px;
  width: fit-content;
}

.auth-cancel:hover { opacity: 0.7; }
.auth-cancel img { width: 22px; height: 22px; display: block; }

.auth-title {
  font-family: "Hanken Grotesk", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: #02020b;
  text-align: center;
  margin: 0 0 24px;
}

.auth-intro {
  font-size: 17px;
  line-height: 1.4;
  color: #02020b;
  text-align: center;
  margin: 0 0 40px;
}

.auth-oauth-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #000;
  border-radius: 50px;
  background: none;
  padding: 12px 0;
  font-family: inherit;
  font-weight: 300;
  font-size: 16px;
  color: #02020b;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.auth-oauth-btn:hover { background: rgba(0, 0, 0, 0.04); }
.auth-oauth-btn img { width: 24px; height: 24px; display: block; }

.auth-coming-soon {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-coming-soon:hover { background: none; }

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #02020b;
}

.auth-footer p { margin: 0 0 12px; }
.auth-footer p:last-child { margin-bottom: 0; }
.auth-footer a { color: inherit; }
.auth-footer a.auth-coming-soon { opacity: 1; color: rgba(2, 2, 11, 0.5); text-decoration: underline; }

/* Sign-up-by-email form */

.auth-field { margin-bottom: 20px; }
.auth-field:last-of-type { margin-bottom: 24px; }

.auth-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.auth-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: none;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #02020b;
}

.auth-field input::placeholder { color: #8d8d8d; }
.auth-field input:focus { outline: 2px solid #000; outline-offset: -2px; }

.auth-forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #02020b;
  text-decoration: underline;
  margin: -10px 0 24px;
}

.auth-forgot:hover { opacity: 0.7; }

.auth-submit {
  display: block;
  margin: 0 auto;
  background: #fe5f55;
  color: #02020b;
  border: none;
  font-family: inherit;
  font-weight: 300;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
}

.auth-submit:hover { background: #ff756c; }
.auth-submit.auth-coming-soon:hover { background: #fe5f55; }
.auth-submit:disabled { opacity: 0.5; cursor: default; }

.auth-error {
  color: #c62828;
  font-size: 14px;
  min-height: 20px;
  margin: 16px 0 0;
  text-align: center;
}

.auth-success {
  color: #02020b;
  font-size: 14px;
  min-height: 20px;
  margin: 16px 0 0;
  text-align: center;
}

/* Tablet: full-bleed illustration behind a floating card */
@media (min-width: 834px) and (max-width: 1024px) {
  .auth-illustration {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
  }

  .auth-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .auth-body { position: relative; z-index: 1; }

  .auth-card {
    background: #f2eee9;
    border: 0.25px solid #000;
    border-radius: 20px;
    box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.25);
    padding: 20px;
    max-width: 536px;
  }

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

/* Desktop: split screen, illustration as a side panel */
@media (min-width: 1025px) {
  .auth-illustration {
    display: block;
    flex: 0 0 706px;
    height: 100vh;
    overflow: hidden;
  }

  .auth-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }

  html, body { height: 100%; }

  .auth-page { display: flex; min-height: 100vh; }

  .auth-body {
    flex: 1;
    padding: 40px;
  }

  .auth-card {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 440px;
  }

  .auth-title { font-size: 53px; text-align: left; }
  .auth-intro { text-align: left; }
}
