@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

:root {
  /* SUUQ brand colours from the established site stylesheet. */
  --suuq-green: #28a745;
  --suuq-green-dark: #218838;
  --suuq-green-deep: #1e7e34;
  --suuq-green-soft: #eff9f1;
  --suuq-orange: #ff9900;
  --suuq-orange-soft: #fff4dd;
  --suuq-ink: #17211d;
  --suuq-muted: #5b675f;
  --suuq-line: #d9e5dc;
  --suuq-page: #f5f8f5;
  --suuq-white: #ffffff;
  --suuq-danger: #b42318;
  --suuq-danger-soft: #fff4f2;
  --suuq-radius-xl: 28px;
  --suuq-radius-lg: 18px;
  --suuq-radius-md: 13px;
  --suuq-shadow: 0 28px 80px rgba(30, 72, 41, 0.13);
}

/*
 * Keep the authentication screens visually clean without locking the page.
 * Continue, Login and Register may still scroll when validation errors or the
 * mobile keyboard genuinely need extra room, but no scrollbar is painted.
 */
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(40, 167, 69, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 88%, rgba(255, 153, 0, 0.10), transparent 24rem),
    var(--suuq-page);
  color: var(--suuq-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.suuq-auth-shell,
.suuq-auth-shell * {
  box-sizing: border-box;
}

.suuq-auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.suuq-auth-frame {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(410px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(220, 230, 215, 0.95);
  border-radius: var(--suuq-radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--suuq-shadow);
  isolation: isolate;
}

.suuq-auth-showcase {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 44%),
    linear-gradient(145deg, var(--suuq-green-dark), var(--suuq-green));
  color: var(--suuq-white);
}

.suuq-auth-showcase::before,
.suuq-auth-showcase::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.suuq-auth-showcase::before {
  width: 280px;
  height: 280px;
  top: -150px;
  right: -125px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.035);
}

.suuq-auth-showcase::after {
  width: 170px;
  height: 170px;
  right: -85px;
  bottom: 54px;
  background: rgba(255, 153, 0, 0.22);
  filter: blur(1px);
}

.suuq-auth-brand {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.suuq-auth-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.suuq-auth-brand-copy {
  display: grid;
  gap: 1px;
}

.suuq-auth-brand-copy strong {
  font-family: "Poppins", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.suuq-auth-brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.suuq-auth-story {
  position: relative;
  z-index: 1;
  max-width: 320px;
}

.suuq-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.suuq-auth-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--suuq-orange);
  box-shadow: 0 0 0 5px rgba(255, 153, 0, 0.17);
}

.suuq-auth-story h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(29px, 3.7vw, 39px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.suuq-auth-story h2.suuq-auth-story-title--orange {
  color: var(--suuq-orange);
  text-shadow: 0 2px 16px rgba(20, 74, 36, 0.22);
}

.suuq-auth-story p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.58;
}

.suuq-auth-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suuq-auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 700;
}

.suuq-auth-trust i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--suuq-orange);
}

.suuq-auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 38px;
  background: rgba(255, 255, 255, 0.97);
}

.suuq-auth-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(40, 167, 69, 0.16);
  border-radius: 999px;
  background: var(--suuq-green-soft);
  color: var(--suuq-green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.suuq-auth-step::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--suuq-orange);
}

.suuq-auth-title {
  margin: 0;
  color: var(--suuq-ink);
  font-family: "Poppins", sans-serif;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.13;
}

.suuq-auth-subtitle {
  max-width: 430px;
  margin: 8px 0 18px;
  color: var(--suuq-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Google sign-in is deliberately isolated so the approved auth design stays intact. */
.suuq-auth-social {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}

.suuq-auth-google-form {
  margin: 0;
}

.suuq-auth-google {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--suuq-line);
  border-radius: var(--suuq-radius-md);
  background: var(--suuq-white);
  box-shadow: 0 5px 16px rgba(33, 136, 56, 0.06);
  color: var(--suuq-ink);
  cursor: pointer;
  font: 750 13px/1 "Inter", system-ui, sans-serif;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.suuq-auth-google:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 167, 69, 0.48);
  background: var(--suuq-green-soft);
  box-shadow: 0 8px 20px rgba(33, 136, 56, 0.10);
}

.suuq-auth-google:active {
  transform: translateY(0);
}

.suuq-auth-google:focus-visible {
  outline: 3px solid rgba(255, 153, 0, 0.30);
  outline-offset: 2px;
}

.suuq-auth-google-mark {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20H24v8h11.3c-1.6 4.6-6 8-11.3 8-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.1 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.7-.4-4z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 18.9 12 24 12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.1 6.1 29.3 4 24 4c-7.7 0-14.3 4.3-17.7 10.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.1-5.2C29.3 35.1 26.8 36 24 36c-5.3 0-9.8-3.4-11.3-8.2l-6.5 5C9.5 39.4 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20H24v8h11.3c-.7 2-1.9 3.7-4 5.6l6.1 5.2C36.9 42.1 44 36 44 24c0-1.3-.1-2.7-.4-4z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.suuq-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--suuq-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.suuq-auth-divider::before,
.suuq-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--suuq-line);
}

.suuq-auth-divider span {
  flex: 0 0 auto;
}

.suuq-auth-form {
  display: grid;
  gap: 14px;
}

.suuq-auth-field {
  display: grid;
  gap: 5px;
}

.suuq-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.suuq-auth-label {
  color: var(--suuq-ink);
  font-size: 12px;
  font-weight: 750;
}

.suuq-auth-label-link,
.suuq-auth-link {
  color: var(--suuq-green-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.suuq-auth-label-link:hover,
.suuq-auth-link:hover {
  color: var(--suuq-green-deep);
  text-decoration: underline;
  text-decoration-color: var(--suuq-orange);
  text-underline-offset: 3px;
}

.suuq-auth-input-wrap {
  position: relative;
}

.suuq-auth-input {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--suuq-line);
  border-radius: var(--suuq-radius-md);
  outline: none;
  background: var(--suuq-white);
  color: var(--suuq-ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.suuq-auth-input::placeholder {
  color: #879181;
  font-weight: 400;
}

.suuq-auth-input:hover {
  border-color: #b8c8b2;
}

.suuq-auth-input:focus {
  border-color: var(--suuq-green);
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

.suuq-auth-input.is-invalid {
  border-color: #f04438;
  background: #fffafa;
}

.suuq-auth-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.10);
}

.suuq-auth-input.has-toggle {
  padding-right: 72px;
}

.suuq-auth-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 52px;
  padding: 7px 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: var(--suuq-green-soft);
  color: var(--suuq-green-dark);
  cursor: pointer;
  font: 800 11px/1 "Inter", system-ui, sans-serif;
}

.suuq-auth-toggle:hover,
.suuq-auth-toggle:focus-visible {
  background: #e4f0df;
  outline: 2px solid rgba(40, 167, 69, 0.20);
  outline-offset: 1px;
}

.suuq-auth-hint {
  margin: -1px 0 0;
  color: var(--suuq-muted);
  font-size: 11px;
  line-height: 1.55;
}

.suuq-auth-errors {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: var(--suuq-danger);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  list-style: none;
}

.suuq-auth-alert {
  margin: 0 0 18px;
  padding: 12px 13px;
  border: 1px solid rgba(180, 35, 24, 0.15);
  border-radius: 12px;
  background: var(--suuq-danger-soft);
  color: #912018;
  font-size: 12px;
  line-height: 1.55;
}

.suuq-auth-alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.suuq-auth-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 0;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--suuq-radius-md);
  background: linear-gradient(135deg, var(--suuq-green), var(--suuq-green-dark));
  box-shadow: 0 12px 24px rgba(33, 136, 56, 0.22);
  color: var(--suuq-white);
  cursor: pointer;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.suuq-auth-button::after {
  content: "\2192";
  font-size: 18px;
  line-height: 1;
}

.suuq-auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(33, 136, 56, 0.26);
  filter: saturate(1.04);
}

.suuq-auth-button:active {
  transform: translateY(0);
}

.suuq-auth-button:focus-visible {
  outline: 3px solid rgba(255, 153, 0, 0.34);
  outline-offset: 3px;
}

.suuq-auth-switch {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--suuq-line);
  color: var(--suuq-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.suuq-auth-switch a {
  color: var(--suuq-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.suuq-auth-switch a:hover {
  color: var(--suuq-green-deep);
  text-decoration: underline;
  text-decoration-color: var(--suuq-orange);
  text-underline-offset: 3px;
}

.suuq-auth-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 16px;
  padding: 11px 12px;
  border: 1px solid rgba(40, 167, 69, 0.16);
  border-radius: 12px;
  background: var(--suuq-green-soft);
  color: var(--suuq-muted);
  font-size: 11px;
  line-height: 1.45;
}

.suuq-auth-account strong {
  display: block;
  overflow: hidden;
  color: var(--suuq-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suuq-auth-account a {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--suuq-white);
  color: var(--suuq-green-dark);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(24, 35, 21, 0.06);
}

.suuq-auth-assurance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  color: var(--suuq-muted);
  font-size: 10px;
  line-height: 1.5;
}

.suuq-auth-assurance::before {
  content: "\2713";
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--suuq-green-soft);
  color: var(--suuq-green);
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 820px) {
  body {
    background: var(--suuq-white);
  }

  .suuq-auth-shell {
    padding: 0;
  }

  .suuq-auth-frame {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .suuq-auth-showcase {
    min-height: auto;
    padding:
      max(12px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      12px
      max(18px, env(safe-area-inset-left));
  }

  .suuq-auth-brand {
    gap: 10px;
  }

  .suuq-auth-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 20px;
  }

  .suuq-auth-brand-copy strong {
    font-size: 19px;
  }

  .suuq-auth-story,
  .suuq-auth-trust {
    display: none;
  }

  .suuq-auth-panel {
    min-height: 0;
    justify-content: flex-start;
    padding:
      18px
      max(18px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .suuq-auth-step {
    display: none;
  }

  .suuq-auth-title {
    font-size: 26px;
    line-height: 1.1;
  }

  .suuq-auth-subtitle {
    margin: 6px 0 14px;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .suuq-auth-social {
    gap: 8px;
    margin-bottom: 11px;
  }

  .suuq-auth-google {
    min-height: 46px;
  }

  .suuq-auth-form {
    gap: 10px;
  }

  .suuq-auth-input,
  .suuq-auth-button {
    min-height: 48px;
  }

  .suuq-auth-switch {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 11.5px;
    line-height: 1.4;
  }

  .suuq-auth-assurance {
    display: none;
  }
}

@media (max-width: 420px) {
  .suuq-auth-panel {
    padding-top: 16px;
  }

  .suuq-auth-title {
    font-size: 25px;
  }

  .suuq-auth-subtitle {
    margin-bottom: 12px;
  }

  .suuq-auth-account {
    align-items: flex-start;
  }
}

@media (min-width: 821px) and (max-height: 680px) {
  .suuq-auth-shell {
    padding-block: max(10px, env(safe-area-inset-top));
  }

  .suuq-auth-showcase {
    min-height: 0;
    padding-block: 26px;
  }

  .suuq-auth-panel {
    padding-block: 24px;
  }

  .suuq-auth-step {
    display: none;
  }

  .suuq-auth-title {
    font-size: 30px;
  }

  .suuq-auth-subtitle {
    margin: 6px 0 14px;
  }

  .suuq-auth-form {
    gap: 12px;
  }

  .suuq-auth-input,
  .suuq-auth-button {
    min-height: 46px;
  }

  .suuq-auth-switch {
    margin-top: 12px;
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .suuq-auth-button,
  .suuq-auth-google,
  .suuq-auth-input {
    transition: none;
  }
}
