:root {
  --auth-ink: #25314a;
  --auth-muted: #7f8a9d;
  --auth-blue: #566df4;
  --auth-blue-dark: #465ee8;
  --auth-line: #e1e6ef;
  --auth-surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--auth-ink);
  background: #f9faff;
  font-family: "DM Sans", Arial, sans-serif;
}

/* Global feedback toast */
.faucet-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147483000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(420px, calc(100vw - 28px));
    padding: 16px 15px;
    border: 1px solid;
    border-radius: 13px;
    box-shadow: 0 16px 38px rgba(20, 31, 54, .22);
    font: 600 13px/1.45 "DM Sans", sans-serif;
    animation: theme2-auth-toast-in .28s ease-out, theme2-auth-toast-out .3s ease-in 5s forwards
}

.faucet-toast:before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; border-radius: 13px 13px 0 0; background: currentColor; opacity: .55; animation: theme2-auth-toast-progress 5s linear forwards }
.faucet-toast__icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; font-size: 15px }
.faucet-toast__content { flex: 1; min-width: 0; padding-top: 3px }
.faucet-toast__content p { margin: 0 }
.faucet-toast__content p+p { margin-top: 5px }
.faucet-toast--success { border-color: #bde8d4; background: #f0fbf6; color: #176d50 }
.faucet-toast--success .faucet-toast__icon { background: #d9f5e7; color: #159468 }
.faucet-toast--danger { border-color: #f0c2ca; background: #fff5f6; color: #a44355 }
.faucet-toast--danger .faucet-toast__icon { background: #ffe3e7; color: #cf5267 }
.faucet-toast--warning { border-color: #f2d59b; background: #fff9ec; color: #93651d }
.faucet-toast--warning .faucet-toast__icon { background: #fff0cb; color: #c48922 }
.faucet-toast--info { border-color: #bee1ef; background: #f1fbff; color: #32708a }
.faucet-toast--info .faucet-toast__icon { background: #dff4fb; color: #249abe }

@keyframes theme2-auth-toast-in { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes theme2-auth-toast-out { to { visibility: hidden; opacity: 0; transform: translateY(14px) } }
@keyframes theme2-auth-toast-progress { from { width: 100% } to { width: 0 } }

@media (max-width: 576px) { .faucet-toast { right: 14px; bottom: 14px; padding: 14px 13px; font-size: 12px } }

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(385px, 44%) minmax(0, 1fr);
}

.auth-showcase {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fefefe;
  border-right: 1px solid #e4e9f5;
}

.auth-showcase::before,
.auth-showcase::after {
  display: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 10px;
  color: var(--auth-ink);
  font: 700 20px/1 "Space Grotesk", sans-serif;
  text-decoration: none;
}

.auth-brand img {
  width: 34px;
  height: 34px;
  display: block;
  flex: none;
  border-radius: 10px;
  object-fit: contain;
}

.auth-brand--mobile {
  display: none;
}

.auth-showcase > .auth-brand {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: clamp(24px, 5%, 58px);
}

.auth-showcase__art {
  width: 100%;
  position: relative;
  z-index: 1;
}

.auth-showcase__art img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.auth-form__kicker {
  display: inline-flex;
  margin: 0;
  color: #647af0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: var(--auth-surface);
}

.auth-form-wrap {
  width: 100%;
  max-width: 410px;
}

.auth-ad-slot {
  margin-top: 24px;
  overflow-x: auto;
  text-align: center;
}

.auth-ad-slot > * { max-width: 100%; }

.auth-form-wrap h2 {
  margin: 10px 0 7px;
  color: var(--auth-ink);
  font: 700 27px/1.22 "Space Grotesk", sans-serif;
  letter-spacing: -1.1px;
}

.auth-form__intro {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-alert {
  margin: 0 0 18px;
}

.auth-alert .alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 11px;
  line-height: 1.45;
}

.auth-alert .alert-danger {
  border-color: #f6d1d8;
  color: #b94660;
  background: #fff4f6;
}

.auth-alert .alert-success {
  border-color: #c8eadb;
  color: #1d8e63;
  background: #effbf5;
}

.auth-field {
  margin-top: 16px;
}

.auth-field > label,
.auth-field__label-row label {
  display: block;
  margin: 0 0 7px;
  color: #3d4a61;
  font-size: 12px;
  font-weight: 700;
}

.auth-field__optional {
  color: #9aa4b2;
  font-weight: 500;
}

.auth-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-field__label-row a,
.auth-switch a,
.auth-checkbox a {
  color: #5068ef;
  font-weight: 700;
  text-decoration: none;
}

.auth-field__label-row a {
  font-size: 11px;
}

.auth-input {
  height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input:focus-within {
  border-color: #6b80f6;
  box-shadow: 0 0 0 3px #6078f416;
}

.auth-input > svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: #96a0b0;
}

.auth-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 10px;
  color: #344057;
  background: transparent;
  font: 13px "DM Sans", Arial, sans-serif;
}

.auth-input input::placeholder {
  color: #afb7c4;
}

.auth-password-toggle {
  display: grid;
  flex: none;
  place-items: center;
  border: 0;
  padding: 4px;
  color: #8994a5;
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: #566df4;
}

.auth-password-toggle svg {
  width: 16px;
  height: 16px;
}

.auth-field__hint {
  margin: 6px 0 0;
  color: #99a2b0;
  font-size: 10px;
}

.auth-optional-field {
  margin-top: 17px;
}

.auth-optional-field summary {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 6px;
  color: #68758a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  list-style: none;
}

.auth-optional-field summary::-webkit-details-marker {
  display: none;
}

.auth-optional-field summary svg {
  width: 14px;
  height: 14px;
  color: #6478ef;
}

.auth-optional-field .auth-input {
  margin-top: 10px;
}

.auth-captcha {
  display: flex;
  justify-content: center;
  margin: 17px 0 0;
}

.auth-captcha .g-recaptcha,
.auth-captcha .h-captcha,
.auth-captcha .cf-turnstile {
  max-width: 100%;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  cursor: pointer;
}

.auth-checkbox input {
  position: absolute;
  opacity: 0;
}

.auth-checkbox > span:first-of-type {
  width: 16px;
  height: 16px;
  display: grid;
  flex: none;
  place-items: center;
  margin-top: 1px;
  border: 1px solid #c6ceda;
  border-radius: 4px;
  color: #fff;
  transition: background .18s ease, border-color .18s ease;
}

.auth-checkbox > span:first-of-type svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.auth-checkbox input:checked + span {
  border-color: #5b71f5;
  background: #5b71f5;
}

.auth-checkbox input:checked + span svg {
  opacity: 1;
}

.auth-checkbox > span:last-of-type {
  color: #788395;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--auth-blue);
  box-shadow: 0 12px 20px #526bf42e;
  cursor: pointer;
  font: 700 13px "DM Sans", Arial, sans-serif;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
  background: var(--auth-blue-dark);
  box-shadow: 0 14px 24px #526bf438;
  transform: translateY(-1px);
}

.auth-submit svg {
  width: 16px;
  height: 16px;
}

.auth-switch {
  margin: 19px 0 0;
  color: #8791a1;
  font-size: 12px;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0 14px;
  color: #9aa4b3;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: #e5eaf1;
}

.auth-google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 46px;
  border: 1px solid #dce2ea;
  border-radius: 9px;
  color: #39475a;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-google-button:hover {
  border-color: #bac5d4;
  box-shadow: 0 5px 14px #2b3d5d15;
  color: #26364a;
  transform: translateY(-1px);
}

.auth-google-button svg,
.auth-google-button img {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .auth-layout {
    display: block;
  }

  .auth-showcase {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    display: block;
    padding: 29px 22px 45px;
  }

  .auth-brand--mobile {
    display: inline-flex;
    margin-bottom: 44px;
  }

  .auth-form-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 410px) {
  .auth-panel {
    padding: 24px 17px 38px;
  }

  .auth-brand--mobile {
    margin-bottom: 36px;
  }

  .auth-form-wrap h2 {
    font-size: 25px;
  }

  .auth-captcha {
    justify-content: flex-start;
    overflow: hidden;
  }

  .auth-captcha .g-recaptcha,
  .auth-captcha .h-captcha {
    transform: scale(.93);
    transform-origin: left center;
  }
}
