/* =========================================================
   STMDESKLY — MAIN STYLESHEET
   Desktop + Mobile Responsive
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */

:root {
  --navy: #172B3A;
  --navy-dark: #10232F;
  --navy-light: #254556;

  --teal: #2F6D70;
  --teal-dark: #24595C;
  --mint: #DCEBE3;
  --mint-strong: #B9DED1;

  --cream: #F7F6F1;
  --paper: #FFFEFB;
  --lavender: #F0EFF8;

  --text: #344A57;
  --muted: #718087;
  --border: #E5E4DD;
  --white: #FFFFFF;

  --font: "Poppins", sans-serif;

  --container: 1200px;
  --page-gutter: 32px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card:
    0 12px 35px rgba(23, 43, 58, 0.07);

  --shadow-float:
    0 20px 55px rgba(23, 43, 58, 0.13);

  --transition:
    220ms ease;
}


/* ---------- 2. RESET ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;

  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);

  font-size: 15px;
  line-height: 1.65;

  overflow-x: hidden;
}

body,
button,
input {
  font-family: var(--font);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input {
  font-size: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

button,
input {
  border-radius: 0;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--white);
  background: var(--teal);
}


/* ---------- 3. SHARED LAYOUT ---------- */

.section-container {
  width: min(
    var(--container),
    calc(100% - var(--page-gutter) * 2)
  );

  margin-inline: auto;
}

section {
  scroll-margin-top: 88px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
}

h1,
h2 {
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
}

svg {
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  flex-shrink: 0;
}

.desktop-break {
  display: initial;
}


/* ---------- 4. BRAND INTRO ---------- */

.brand-intro {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 270px;

  padding: 64px 24px;

  text-align: center;
  overflow: hidden;
}

.brand-intro::after {
  content: "";

  position: absolute;
  bottom: 30px;
  left: 50%;

  width: 42px;
  height: 3px;

  border-radius: var(--radius-pill);
  background: var(--teal);

  transform: translateX(-50%);
  opacity: 0.75;
}

.brand-intro-content {
  width: 100%;
}

.intro-brand {
  display: inline-block;

  margin: 0;

  color: var(--navy);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.075em;

  animation: brand-enter 850ms cubic-bezier(.2, .7, .2, 1) both;
}

.intro-caption {
  margin: 20px 0 0;

  color: var(--teal);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;

  animation: caption-enter 700ms 180ms ease both;
}


/* ---------- 5. HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;

  background: rgba(247, 246, 241, 0.96);
  border-top: 1px solid rgba(229, 228, 221, 0.7);
  border-bottom: 1px solid rgba(229, 228, 221, 0.85);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: min(
    1320px,
    calc(100% - var(--page-gutter) * 2)
  );

  min-height: 78px;
  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;

  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.nav-link {
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 44px;

  color: var(--text);
  font-size: 12px;
  font-weight: 500;

  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link.active::after {
  content: "";

  position: absolute;
  bottom: 4px;
  left: 0;

  width: 100%;
  height: 2px;

  background: var(--teal);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.login-link {
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
}

.login-link:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;
  padding: 10px;

  border: 0;
  border-radius: 50%;
  background: transparent;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}


/* ---------- 6. BUTTONS ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 48px;
  padding: 12px 24px;

  border: 1px solid transparent;
  border-radius: var(--radius-pill);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.button-primary:hover {
  color: var(--white);
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 7px 18px rgba(23, 43, 58, 0.12);
}

.button-outline {
  color: var(--navy);
  background: transparent;
  border-color: #AAB6B9;
}

.button-outline:hover {
  background: var(--paper);
  border-color: var(--navy);
}

.header-cta {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 11px;
}

.button-mint {
  color: var(--navy);
  background: var(--mint-strong);
  border-color: var(--mint-strong);
}

.button-mint:hover {
  background: #D2E9DF;
  border-color: #D2E9DF;
}


/* ---------- 7. HERO ---------- */

.hero {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);

  padding-top: 76px;
  padding-bottom: 100px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 620px;
  margin-bottom: 24px;

  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.065em;
}

.hero-description {
  max-width: 510px;
  margin-bottom: 0;

  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;

  margin-top: 28px;
}

.login-prompt {
  margin: 22px 0 0;

  color: var(--muted);
  font-size: 11px;
}

.login-prompt a {
  margin-left: 5px;

  color: var(--teal);
  font-weight: 700;
}

.login-prompt a:hover {
  text-decoration: underline;
}


/* ---------- 8. HERO VISUAL ---------- */

.hero-visual {
  position: relative;

  min-width: 0;
  min-height: 410px;

  display: flex;
  align-items: center;
  justify-content: center;

  isolation: isolate;
}

.hero-shape {
  position: absolute;
  z-index: -1;

  top: 5%;
  left: 3%;

  width: 88%;
  height: 84%;

  border-radius: 40% 28% 38% 24%;
  background: var(--mint);

  transform: rotate(-7deg);
}

.hero-photo-wrap {
  position: absolute;

  top: 0;
  left: 12%;

  width: 76%;
  height: 63%;

  overflow: hidden;

  border: 7px solid var(--paper);
  border-radius: 20px;

  background: #E4E7E1;
  box-shadow: var(--shadow-card);
}

.hero-photo {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  background: #E4E7E1;
}

.desk-preview-card {
  position: absolute;
  z-index: 2;

  top: 39%;
  left: 3%;

  width: 77%;
  max-width: 370px;

  padding: 19px;

  border: 1px solid rgba(229, 228, 221, 0.9);
  border-radius: 17px;

  background: var(--paper);
  box-shadow: var(--shadow-float);
}

.desk-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  border-radius: 50%;
  object-fit: cover;

  background: var(--mint);
}

.desk-profile h2 {
  margin: 0;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.desk-profile p {
  margin: 2px 0 0;

  color: var(--muted);
  font-size: 10px;
}

.desk-bio {
  margin: 13px 0 17px;

  color: var(--text);
  font-size: 10px;
  line-height: 1.65;
}

.desk-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;

  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.quick-link {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;

  color: var(--text);
  font-size: 9px;
  font-weight: 500;
  text-align: center;
}

.quick-link-icon {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
}

.quick-link-icon svg {
  width: 17px;
  height: 17px;
}

.desk-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;

  margin-top: 13px;
}

.desk-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;

  border-radius: 6px;
  object-fit: cover;

  background: var(--mint);
}

.share-card {
  position: absolute;
  z-index: 3;

  right: 0;
  bottom: 1%;

  width: min(310px, 85%);

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 13px 15px;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.share-card > svg {
  width: 19px;
  height: 19px;

  color: var(--teal);
}

.share-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;
}

.share-card strong {
  font-size: 10px;
  font-weight: 700;
}

.share-card span {
  color: var(--teal);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.copy-link-button {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  padding: 7px;

  border: 0;
  border-radius: 8px;
  background: transparent;
}

.copy-link-button:hover {
  background: var(--mint);
}

.copy-link-button svg {
  width: 17px;
  height: 17px;
}


/* ---------- 9. SECTION HEADINGS ---------- */

.audience-section {
  padding-top: 20px;
  padding-bottom: 100px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 45px;

  margin-bottom: 32px;
}

.section-label {
  display: block;

  margin-bottom: 10px;

  color: var(--teal);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading h2,
.how-heading h2 {
  margin: 0;

  font-size: clamp(30px, 3.3vw, 43px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.section-intro {
  margin: 0;
  padding-left: 28px;

  border-left: 1px solid #C9D0CD;

  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}


/* ---------- 10. AUDIENCE CARDS ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.audience-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid rgba(229, 228, 221, 0.8);
  border-radius: 13px;

  background: var(--paper);

  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.audience-card > img {
  width: 100%;
  aspect-ratio: 1.6 / 1;

  object-fit: cover;
  object-position: center;

  background: #E5E8E1;
}

.audience-person {
  background: #E8F2EC;
}

.audience-business {
  background: #EAF1F3;
}

.audience-place {
  background: var(--lavender);
}

.audience-content {
  position: relative;
  padding: 22px 20px 24px;
}

.audience-icon {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  margin-top: -46px;
  margin-bottom: 15px;

  border: 3px solid var(--paper);
  border-radius: 50%;

  color: var(--white);
  background: var(--teal);

  box-shadow: 0 3px 10px rgba(23, 43, 58, 0.12);
}

.audience-business .audience-icon {
  background: #24516A;
}

.audience-place .audience-icon {
  background: #454577;
}

.audience-icon svg {
  width: 21px;
  height: 21px;
}

.audience-content h3 {
  margin: 0 0 8px;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.audience-content p {
  margin: 0;

  color: var(--text);

  font-size: 12px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: 19px;

  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.text-link svg {
  width: 17px;
  height: 17px;

  transition: transform var(--transition);
}

.text-link:hover svg {
  transform: translateX(4px);
}


/* ---------- 11. HOW IT WORKS ---------- */

.how-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 2fr);
  gap: 45px;

  padding-top: 38px;
  padding-bottom: 55px;

  border-top: 1px solid var(--border);
}

.how-heading h2 {
  font-size: clamp(29px, 3vw, 40px);
}

.how-heading > p {
  margin: 12px 0 0;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.step-card {
  min-width: 0;
  padding: 0 20px;

  border-left: 1px solid var(--border);
}

.step-card:first-child {
  padding-left: 0;
  border-left: 0;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 17px;
}

.step-number {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 50%;

  color: var(--white);
  background: var(--navy);

  font-size: 12px;
  font-weight: 700;
}

.step-top > svg {
  width: 27px;
  height: 27px;

  color: var(--teal);
}

.step-card h3 {
  margin: 0 0 7px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.step-card p {
  margin: 0;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}


/* ---------- 12. FREE BANNER ---------- */

.free-section {
  padding-top: 5px;
  padding-bottom: 65px;
}

.free-banner {
  position: relative;
  isolation: isolate;

  min-height: 170px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 30px 38px;

  overflow: hidden;

  border-radius: 15px;

  color: var(--white);
  background: var(--navy-dark);
}

.free-banner::after {
  content: "";

  position: absolute;
  z-index: -1;

  top: -45%;
  right: -2%;

  width: 44%;
  height: 200%;

  background:
    linear-gradient(
      135deg,
      transparent,
      rgba(47, 109, 112, 0.28)
    );

  transform: rotate(-15deg);
}

.free-copy {
  max-width: 650px;
}

.free-label {
  display: block;

  margin-bottom: 5px;

  color: var(--mint-strong);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.free-banner h2 {
  margin: 0 0 6px;

  color: var(--white);

  font-size: clamp(26px, 3.5vw, 37px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.free-banner p {
  max-width: 560px;
  margin: 0;

  color: #E0E8E8;

  font-size: 11px;
  line-height: 1.8;
}

.free-banner .button {
  flex-shrink: 0;
}


/* ---------- 13. FOOTER ---------- */

.site-footer {
  width: min(
    var(--container),
    calc(100% - var(--page-gutter) * 2)
  );

  margin-inline: auto;
  padding-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1.2fr;
  gap: 45px;

  padding-top: 8px;
  padding-bottom: 35px;
}

.footer-brand {
  font-size: 19px;
}

.footer-brand .brand-logo {
  width: 30px;
  height: 30px;
}

.footer-brand-column > p {
  margin: 13px 0 15px;

  color: var(--muted);
  font-size: 11px;
}

.site-footer h2 {
  margin: 0 0 15px;

  font-size: 12px;
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a {
  width: fit-content;

  color: var(--muted);
  font-size: 11px;

  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--teal);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.social-links a {
  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  color: var(--navy);

  transition:
    color var(--transition),
    transform var(--transition);
}

.social-links a:hover {
  color: var(--teal);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 6px;

  max-width: 330px;
  padding: 5px;

  border: 1px solid var(--border);
  border-radius: var(--radius-pill);

  background: var(--paper);
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  height: 36px;

  padding: 0 12px;

  border: 0;
  outline: none;
  border-radius: var(--radius-pill);

  color: var(--navy);
  background: transparent;

  font-size: 10px;
}

.newsletter-form input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.newsletter-form input::placeholder {
  color: #899397;
}

.newsletter-form button {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  padding: 8px;

  border: 0;
  border-radius: 50%;

  color: var(--white);
  background: var(--teal);

  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: var(--navy);
}

.newsletter-form button svg {
  width: 17px;
  height: 17px;
}

.footer-newsletter > p {
  margin: 12px 0 0;

  color: var(--muted);
  font-size: 10px;
}

.footer-newsletter .newsletter-message {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding-top: 18px;

  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;

  color: var(--muted);
  font-size: 10px;
}

.footer-bottom nav {
  display: flex;
  gap: 18px;
}

.footer-bottom nav a {
  color: var(--muted);
  font-size: 10px;
}

.footer-bottom nav a:hover {
  color: var(--teal);
}


/* ---------- 14. ACCESSIBILITY ---------- */

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}


/* ---------- 15. SCROLL REVEAL ---------- */

/*
  These classes work with the IntersectionObserver
  JavaScript in index.html.

  Elements become visible when they enter the viewport.
*/

.reveal {
  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(.2, .7, .2, 1);

  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}


/* ---------- 16. INTRO ANIMATIONS ---------- */

@keyframes brand-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes caption-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- 17. TABLET ---------- */

@media (max-width: 1050px) {
  :root {
    --page-gutter: 26px;
  }

  .header-inner {
    gap: 18px;
  }

  .main-navigation {
    gap: 19px;
  }

  .nav-actions {
    gap: 15px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    gap: 30px;
    padding-top: 60px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 5.2vw, 58px);
  }

  .hero-visual {
    min-height: 380px;
  }

  .desk-preview-card {
    width: 82%;
    left: 0;
    padding: 16px;
  }

  .section-heading {
    gap: 28px;
  }

  .audience-grid {
    gap: 16px;
  }

  .audience-content {
    padding: 19px 16px 22px;
  }

  .audience-content h3 {
    font-size: 18px;
  }

  .how-section {
    gap: 28px;
  }

  .step-card {
    padding-inline: 14px;
  }

  .step-top {
    gap: 10px;
  }
}


/* ---------- 18. MOBILE NAVIGATION ---------- */

@media (max-width: 780px) {
  :root {
    --page-gutter: 22px;
  }

  .brand-intro {
    min-height: 225px;
    padding: 50px 20px;
  }

  .intro-brand {
    font-size: clamp(46px, 10vw, 68px);
  }

  .intro-caption {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .header-inner {
    min-height: 70px;
    gap: 15px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-logo {
    width: 31px;
    height: 31px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;

    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;

    max-height: calc(100dvh - 75px);
    overflow-y: auto;

    padding: 12px var(--page-gutter) 22px;

    border-bottom: 1px solid var(--border);
    background: var(--cream);

    box-shadow: 0 18px 28px rgba(23, 43, 58, 0.08);
  }

  .main-navigation.menu-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;

    padding-top: 18px;
  }

  .login-link {
    min-height: 38px;
    display: flex;
    align-items: center;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;

    padding-top: 50px;
    padding-bottom: 75px;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: clamp(42px, 8.8vw, 66px);
  }

  .hero-description {
    max-width: 600px;
    font-size: 14px;
  }

  .hero-visual {
    width: min(100%, 540px);
    min-height: 430px;
    margin-inline: auto;
  }

  .hero-photo-wrap {
    left: 12%;
    width: 77%;
    height: 64%;
  }

  .desk-preview-card {
    top: 39%;
    left: 3%;

    width: 78%;
    max-width: 390px;
  }

  .share-card {
    right: 0;
    bottom: 0;
    width: min(310px, 86%);
  }

  .audience-section {
    padding-top: 5px;
    padding-bottom: 75px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;

    margin-bottom: 27px;
  }

  .section-heading h2,
  .how-heading h2 {
    font-size: clamp(30px, 6vw, 40px);
  }

  .section-intro {
    max-width: 540px;
    padding: 0;

    border: 0;

    font-size: 13px;
  }

  .audience-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .audience-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .audience-card > img {
    height: 100%;
    min-height: 230px;
    aspect-ratio: auto;
  }

  .audience-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;

    padding: 22px 18px;
  }

  .audience-icon {
    width: 40px;
    height: 40px;

    margin-top: 0;
    margin-bottom: 13px;
  }

  .audience-content h3 {
    font-size: 18px;
  }

  .audience-content p {
    font-size: 11px;
  }

  .text-link {
    margin-top: auto;
    padding-top: 16px;
  }

  .how-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;

    padding-top: 35px;
    padding-bottom: 40px;
  }

  .how-heading > p {
    margin-top: 9px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .step-card {
    padding: 0 12px;
  }

  .step-card:first-child {
    padding-left: 0;
  }

  .step-top {
    flex-wrap: wrap;
    gap: 9px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .step-top > svg {
    width: 23px;
    height: 23px;
  }

  .step-card h3 {
    font-size: 12px;
  }

  .step-card p {
    font-size: 10px;
  }

  .free-section {
    padding-bottom: 45px;
  }

  .free-banner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;

    padding: 30px;
  }

  .free-banner .button {
    min-width: 190px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}


/* ---------- 19. SMALL MOBILE ---------- */

@media (max-width: 520px) {
  :root {
    --page-gutter: 18px;
  }

  .brand-intro {
    min-height: 190px;
    padding: 40px 15px;
  }

  .brand-intro::after {
    bottom: 20px;
    width: 32px;
  }

  .intro-brand {
    font-size: clamp(40px, 11vw, 56px);
  }

  .intro-caption {
    margin-top: 14px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .brand-logo {
    width: 29px;
    height: 29px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 60px;
    gap: 25px;
  }

  .hero-copy h1 {
    font-size: clamp(37px, 10vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.06em;

    margin-bottom: 17px;
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;

    margin-top: 23px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .login-prompt {
    margin-top: 17px;
  }

  .hero-visual {
    min-height: 355px;
  }

  .hero-photo-wrap {
    top: 0;
    left: 10%;

    width: 82%;
    height: 57%;

    border-width: 5px;
    border-radius: 15px;
  }

  .hero-shape {
    top: 8%;
    left: 2%;

    width: 95%;
    height: 79%;
  }

  .desk-preview-card {
    top: 34%;
    left: 0;

    width: 86%;
    padding: 14px;

    border-radius: 14px;
  }

  .profile-avatar {
    width: 38px;
    height: 38px;
  }

  .desk-profile h2 {
    font-size: 12px;
  }

  .desk-profile p {
    font-size: 9px;
  }

  .desk-bio {
    font-size: 9px;
    margin-block: 11px 14px;
  }

  .desk-quick-links {
    padding-bottom: 12px;
  }

  .quick-link {
    font-size: 8px;
  }

  .quick-link-icon {
    width: 28px;
    height: 28px;
  }

  .desk-gallery {
    gap: 4px;
    margin-top: 10px;
  }

  .share-card {
    bottom: 0;
    right: 0;

    width: 84%;
    padding: 10px 12px;
  }

  .share-card strong {
    font-size: 9px;
  }

  .share-card span {
    font-size: 8px;
  }

  .audience-section {
    padding-bottom: 58px;
  }

  .section-heading h2,
  .how-heading h2 {
    font-size: 31px;
  }

  .audience-grid {
    gap: 16px;
  }

  .audience-card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .audience-card > img {
    min-height: 220px;
  }

  .audience-content {
    padding: 17px 13px;
  }

  .audience-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 11px;
  }

  .audience-icon svg {
    width: 18px;
    height: 18px;
  }

  .audience-content h3 {
    font-size: 15px;
    line-height: 1.4;
  }

  .audience-content p {
    font-size: 10px;
    line-height: 1.7;
  }

  .text-link {
    font-size: 10px;
  }

  .how-section {
    gap: 24px;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .step-card,
  .step-card:first-child {
    padding: 0 0 19px;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .step-card:last-child {
    border-bottom: 0;
  }

  .step-top {
    flex-wrap: nowrap;
    gap: 13px;
    margin-bottom: 12px;
  }

  .step-number {
    width: 37px;
    height: 37px;
  }

  .step-card h3 {
    font-size: 13px;
  }

  .step-card p {
    max-width: 320px;
    font-size: 11px;
  }

  .free-section {
    padding-bottom: 35px;
  }

  .free-banner {
    gap: 21px;
    padding: 25px 22px;
  }

  .free-banner h2 {
    font-size: 29px;
  }

  .free-banner p {
    font-size: 11px;
  }

  .free-banner .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;

    padding-bottom: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}


/* ---------- 20. EXTRA SMALL DEVICES ---------- */

@media (max-width: 360px) {
  :root {
    --page-gutter: 15px;
  }

  .intro-brand {
    font-size: 38px;
  }

  .intro-caption {
    font-size: 7px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .desk-preview-card {
    width: 90%;
    padding: 12px;
  }

  .share-card {
    width: 89%;
  }

  .audience-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .audience-card > img {
    min-height: 240px;
  }

  .audience-content {
    padding: 14px 10px;
  }

  .audience-content h3 {
    font-size: 14px;
  }

  .audience-content p {
    font-size: 9px;
  }
}


/* ---------- 21. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* =========================================================
   STMDESKLY — AUTH PAGES
   Friendly • Spacious • Creative
   Works with the existing signup and login form classes
   ========================================================= */

/* ---------- Page foundation ---------- */

body.page-auth {
  --auth-cream: #F7F6F1;
  --auth-paper: #FFFEFB;
  --auth-navy: #172B3A;
  --auth-deep: #10232F;
  --auth-teal: #2F6D70;
  --auth-mint: #DCEBE3;
  --auth-border: #DDE4DF;
  --auth-muted: #74828A;

  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(220, 235, 227, 0.7),
      transparent 25rem
    ),
    var(--auth-cream);
  color: var(--auth-navy);
  overflow-x: clip;
}

body.page-auth *,
body.page-auth *::before,
body.page-auth *::after {
  box-sizing: border-box;
}

body.page-auth a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Top navigation ---------- */

.auth-topbar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 56px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--auth-navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.auth-topbar a img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.auth-topbar .auth-topbar-back {
  padding: 10px 15px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.72);

  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.auth-topbar .auth-topbar-back:hover {
  color: var(--auth-navy);
  background: var(--auth-paper);
  border-color: #B9CBC4;
  transform: translateY(-1px);
}

/* ---------- Form area ---------- */

.auth-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 24px 20px 64px;
}

/* ---------- Main form card ---------- */

.auth-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  min-width: 0;

  padding: clamp(26px, 4vw, 38px);
  overflow: hidden;

  background: var(--auth-paper);
  border: 1px solid rgba(221, 228, 223, 0.9);
  border-radius: 24px;

  box-shadow:
    0 24px 70px rgba(23, 43, 58, 0.065),
    0 3px 10px rgba(23, 43, 58, 0.025);

  animation: auth-card-enter 550ms cubic-bezier(.2, .7, .2, 1) both;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;

  border-radius: 0 0 999px 999px;
  background: linear-gradient(
    90deg,
    var(--auth-teal),
    #8CBBA9
  );
}

@keyframes auth-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Headings ---------- */

.auth-title {
  margin: 0 0 9px;

  color: var(--auth-navy);
  font-size: clamp(25px, 4vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.auth-sub {
  margin: 0 0 26px;

  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- Google sign-in ---------- */

.auth-google {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: var(--auth-paper);

  color: var(--auth-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;

  cursor: pointer;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-google:hover {
  border-color: #B9CBC4;
  background: #FBFCF9;
  box-shadow: 0 5px 16px rgba(23, 43, 58, 0.05);
  transform: translateY(-1px);
}

.auth-google:active {
  transform: translateY(0);
}

.auth-google:focus-visible {
  outline: 3px solid rgba(47, 109, 112, 0.25);
  outline-offset: 3px;
}

.auth-google svg {
  display: block;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
}

/* ---------- Divider ---------- */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 25px 0;

  color: #89959A;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

/* ---------- Form fields ---------- */

.auth-field {
  min-width: 0;
  margin-bottom: 19px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;

  color: var(--auth-navy);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.auth-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;

  padding: 13px 15px;

  border: 1px solid #D8E1DC;
  border-radius: 13px;
  background: #FCFCF9;

  color: var(--auth-navy);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;

  outline: none;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-input:hover {
  border-color: #BECFC7;
}

.auth-input:focus {
  border-color: var(--auth-teal);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(47, 109, 112, 0.10);
}

.auth-input::placeholder {
  color: #A0ACAF;
  opacity: 1;
}

.auth-input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.auth-input:focus-visible {
  outline: none;
}

/* ---------- Password visibility ---------- */

.auth-pw-wrap {
  position: relative;
  min-width: 0;
}

.auth-pw-wrap .auth-input {
  padding-right: 52px;
}

.auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);

  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;
  padding: 0;

  border: 0;
  border-radius: 10px;
  background: transparent;

  color: var(--auth-muted);
  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease;
}

.auth-pw-toggle:hover {
  color: var(--auth-teal);
  background: var(--auth-mint);
}

.auth-pw-toggle:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 1px;
}

.auth-pw-toggle svg {
  display: block;
  width: 19px;
  height: 19px;
}

/* ---------- Password strength ---------- */

.auth-meter {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.auth-meter-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #E4E8E4;
  transition: background 200ms ease;
}

.auth-meter-bar.on-1 {
  background: #D9695F;
}

.auth-meter-bar.on-2 {
  background: #E8A13B;
}

.auth-meter-bar.on-3 {
  background: #7BB37E;
}

.auth-meter-bar.on-4 {
  background: var(--auth-teal);
}

.auth-meter-label {
  display: block;
  margin-top: 7px;
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Helper messages ---------- */

.auth-hint {
  display: block;
  margin-top: 7px;

  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.auth-hint strong {
  color: var(--auth-navy);
}

.auth-hint.ok {
  color: #347B53;
}

.auth-hint.bad {
  color: #B3261E;
}

/* ---------- Terms and privacy ---------- */

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin: 21px 0;

  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.7;

  cursor: pointer;
}

.auth-terms input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;

  accent-color: var(--auth-teal);
  cursor: pointer;
}

.auth-terms a {
  color: var(--auth-teal);
  font-weight: 700;
  text-decoration: none;
}

.auth-terms a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Primary button ---------- */

.auth-submit {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--auth-navy);

  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;

  cursor: pointer;

  box-shadow: 0 5px 12px rgba(16, 35, 47, 0.10);

  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.auth-submit:hover:not(:disabled) {
  background: var(--auth-teal);
  box-shadow: 0 8px 18px rgba(47, 109, 112, 0.17);
  transform: translateY(-1px);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(47, 109, 112, 0.25);
  outline-offset: 3px;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Form footer ---------- */

.auth-foot {
  margin-top: 24px;

  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.auth-foot a {
  color: var(--auth-teal);
  font-weight: 750;
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Error state ---------- */

.auth-error {
  margin-bottom: 18px;
  padding: 13px 15px;

  border: 1px solid #F0D0CB;
  border-radius: 12px;
  background: #FFF3F0;

  color: #8A3028;
  font-size: 12px;
  line-height: 1.65;

  overflow-wrap: anywhere;
}

.auth-error:empty {
  display: none;
}

/* ---------- Success / confirmation state ---------- */

.auth-success {
  padding: 26px 20px;

  border: 1px solid #D2E5D9;
  border-radius: 18px;
  background: #EFF7F0;

  color: var(--auth-navy);
  text-align: center;
}

.auth-success h2 {
  margin: 0 0 9px;

  color: var(--auth-navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.auth-success p {
  margin: 0 0 18px;

  color: #62766C;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.auth-success code {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 12px;

  border: 1px solid #DDE8DF;
  border-radius: 9px;
  background: var(--auth-paper);

  color: var(--auth-teal);
  font-size: 12px;
  font-weight: 650;

  overflow-wrap: anywhere;
}

.auth-success .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 12px 22px;

  border-radius: 12px;
  background: var(--auth-navy);

  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;

  transition: background 180ms ease;
}

.auth-success .btn:hover {
  background: var(--auth-teal);
}

/* ---------- Responsive layout ---------- */

@media (min-width: 760px) {
  .auth-wrap {
    padding-top: 36px;
    padding-bottom: 72px;
  }

  .auth-card {
    padding: 38px 34px;
  }
}

@media (max-width: 520px) {
  .auth-topbar {
    padding: 17px 18px;
  }

  .auth-topbar a {
    font-size: 16px;
  }

  .auth-topbar a img {
    width: 29px;
    height: 29px;
  }

  .auth-topbar .auth-topbar-back {
    padding: 9px 12px;
    font-size: 11px;
  }

  .auth-wrap {
    padding: 18px 15px 40px;
  }

  .auth-card {
    padding: 28px 21px;
    border-radius: 20px;
  }

  .auth-card::before {
    left: 21px;
    right: 21px;
  }

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

  .auth-sub {
    margin-bottom: 23px;
  }

  .auth-divider {
    margin: 22px 0;
  }

  .auth-field {
    margin-bottom: 17px;
  }
}

@media (max-width: 360px) {
  .auth-topbar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .auth-wrap {
    padding-right: 10px;
    padding-left: 10px;
  }

  .auth-card {
    padding: 25px 17px;
    border-radius: 17px;
  }

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

  .auth-input {
    font-size: 13px;
  }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }

  .auth-topbar .auth-topbar-back,
  .auth-google,
  .auth-input,
  .auth-pw-toggle,
  .auth-meter-bar,
  .auth-submit,
  .auth-success .btn {
    transition: none;
  }
}

/* =========================================================
   STMDESKLY — SIGNUP SPLIT LAYOUT
   ========================================================= */

.page-auth-signup .auth-topbar {
  max-width: 1500px;
  padding-left: clamp(22px, 5vw, 72px);
  padding-right: clamp(22px, 5vw, 72px);
}

.auth-topbar .auth-brand {
  gap: 11px;
}

.auth-topbar .auth-topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-topbar .auth-topbar-back svg {
  width: 15px;
  height: 15px;
}

.auth-layout {
  width: 100%;
  max-width: 1500px;
  flex: 1;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 72px) 55px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
}

/* Welcome panel */

.auth-welcome {
  position: relative;
  min-width: 0;
  padding: 28px 0 20px;
}

.auth-welcome-copy {
  max-width: 570px;
}

.auth-eyebrow,
.auth-form-kicker {
  display: inline-block;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.6;
}

.auth-welcome h1 {
  margin: 22px 0 18px;
  max-width: 590px;

  color: var(--navy);
  font-size: clamp(36px, 4.5vw, 63px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.auth-period {
  color: var(--teal);
}

.auth-welcome-copy > p {
  max-width: 440px;
  margin: 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.auth-benefits {
  display: grid;
  gap: 19px;
  margin-top: 34px;
}

.auth-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-benefit-mark {
  flex-shrink: 0;
  width: 43px;
  height: 43px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(47, 109, 112, 0.12);
  border-radius: 14px;
  background: rgba(220, 235, 227, 0.75);
  color: var(--teal);
}

.auth-benefit-mark svg {
  width: 20px;
  height: 20px;
}

.auth-benefit > div {
  display: grid;
  gap: 3px;
}

.auth-benefit strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.auth-benefit > div > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Workspace preview */

.auth-preview {
  position: relative;
  max-width: 470px;
  margin-top: 38px;
  padding: 19px;

  border: 1px solid rgba(47, 109, 112, 0.12);
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.82);

  box-shadow: 0 18px 50px rgba(23, 43, 58, 0.045);
  transform: rotate(-1deg);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.auth-preview:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 0 23px 55px rgba(23, 43, 58, 0.07);
}

.auth-preview-top,
.auth-preview-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-preview-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.auth-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--teal);
  font-size: 9px;
  font-weight: 600;
}

.auth-preview-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65A57A;
}

.auth-preview-content {
  margin-top: 20px;
  padding: 19px;

  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--cream);
}

.auth-preview-avatar {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 17px;
}

.auth-preview-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-preview-lines {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.auth-line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #D8E2DC;
}

.auth-line-wide {
  width: 45%;
}

.auth-line-short {
  width: 28%;
  height: 6px;
  background: #E3E8E3;
}

.auth-preview-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.auth-preview-block {
  min-height: 66px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(23, 43, 58, 0.04);
  border-radius: 13px;
}

.auth-preview-block svg {
  width: 23px;
  height: 23px;
}

.auth-block-one {
  background: #DCEBE3;
  color: #2F6D70;
}

.auth-block-two {
  background: #EAE8DD;
  color: #53675C;
}

.auth-block-three {
  background: #E2EAF0;
  color: #49677A;
}

.auth-preview-bottom {
  margin-top: 18px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 600;
}

.auth-preview-bottom svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.auth-welcome-footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

/* Form side */

.auth-main {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.page-auth-signup .auth-card {
  width: 100%;
  max-width: 475px;
  padding: clamp(25px, 3vw, 36px);
}

.auth-form-heading {
  margin-bottom: 24px;
}

.auth-form-kicker {
  margin-bottom: 11px;
  font-size: 9px;
}

.page-auth-signup .auth-title {
  font-size: clamp(25px, 2.5vw, 31px);
}

.page-auth-signup .auth-sub {
  margin-bottom: 0;
}

.auth-optional {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.auth-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 23px;

  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.auth-form-note svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.page-auth-signup .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-auth-signup .auth-submit svg {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.page-auth-signup .auth-submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.page-auth-signup .auth-success {
  padding: 30px 22px;
}

.auth-state-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;

  border-radius: 17px;
  background: var(--auth-mint, #DCEBE3);
  color: var(--auth-teal, #2F6D70);
}

.auth-state-mark svg {
  width: 24px;
  height: 24px;
}

.auth-page-footer {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) 24px;

  display: flex;
  justify-content: space-between;
  gap: 16px;

  color: var(--muted);
  font-size: 10px;
}

.auth-page-footer span:first-child {
  color: var(--navy);
  font-weight: 700;
}

/* Medium screens */

@media (max-width: 1050px) {
  .auth-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 32px;
  }

  .auth-welcome h1 {
    font-size: clamp(34px, 4vw, 46px);
  }

  .auth-preview {
    margin-top: 28px;
  }

  .page-auth-signup .auth-card {
    padding: 28px 24px;
  }
}

/* Mobile */

@media (max-width: 760px) {
  .page-auth-signup .auth-topbar {
    padding: 16px 20px;
  }

  .auth-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 27px;
    padding: 12px 16px 38px;
  }

  .auth-welcome {
    padding: 14px 4px 0;
  }

  .auth-welcome h1 {
    margin: 13px 0 11px;
    font-size: clamp(32px, 8vw, 43px);
  }

  .auth-welcome-copy > p {
    max-width: 470px;
    font-size: 12px;
    line-height: 1.8;
  }

  .auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .auth-benefit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
  }

  .auth-benefit-mark {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .auth-benefit-mark svg {
    width: 18px;
    height: 18px;
  }

  .auth-benefit strong {
    font-size: 10px;
  }

  .auth-benefit > div > span {
    font-size: 9px;
    line-height: 1.6;
  }

  .auth-preview {
    display: none;
  }

  .auth-welcome-footer {
    display: none;
  }

  .auth-main {
    width: 100%;
  }

  .page-auth-signup .auth-card {
    max-width: none;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .page-auth-signup .auth-title {
    font-size: 27px;
  }

  .auth-page-footer {
    padding: 0 20px 20px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .auth-layout {
    padding-right: 12px;
    padding-left: 12px;
  }

  .auth-benefits {
    gap: 7px;
  }

  .auth-benefit strong {
    font-size: 9px;
  }

  .auth-benefit > div > span {
    font-size: 8px;
  }

  .page-auth-signup .auth-card {
    padding: 24px 17px;
  }

  .auth-page-footer {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-preview,
  .page-auth-signup .auth-submit svg {
    transition: none;
  }
}



/* =========================================================
   STMDESKLY AUTHENTICATION
   Login and signup pages
   ========================================================= */

:root {
  --auth-navy: #172B3A;
  --auth-navy-deep: #10232F;
  --auth-teal: #2F6D70;
  --auth-mint: #DCEBE3;
  --auth-cream: #F7F6F1;
  --auth-paper: #FFFEFB;

  --auth-text: var(--text, #243642);
  --auth-muted: var(--muted, #6D7A80);
  --auth-border: var(--border, #E1E6E2);

  --auth-radius: 20px;
  --auth-radius-sm: 12px;

  --auth-shadow:
    0 24px 65px rgba(23, 43, 58, 0.08),
    0 3px 12px rgba(23, 43, 58, 0.035);

  --auth-transition: 180ms ease;
}


/* =========================================================
   PAGE
   ========================================================= */

.page-auth {
  min-height: 100vh;
  margin: 0;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(220, 235, 227, 0.62),
      transparent 52%
    ),
    var(--auth-cream);

  color: var(--auth-text);
  font-family: 'Poppins', sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-auth *,
.page-auth *::before,
.page-auth *::after {
  box-sizing: border-box;
}

.page-auth a {
  -webkit-tap-highlight-color: transparent;
}

.page-auth button,
.page-auth input {
  font: inherit;
}

.page-auth button {
  -webkit-tap-highlight-color: transparent;
}

.page-auth svg {
  display: block;
  flex: 0 0 auto;
}

.page-auth [hidden] {
  display: none !important;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.auth-topbar {
  width: 100%;
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  padding:
    16px
    max(24px, calc((100% - 1160px) / 2));

  border-bottom: 1px solid rgba(23, 43, 58, 0.06);
}

.auth-topbar > a {
  text-decoration: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  color: var(--auth-navy);

  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.45px;
}

.auth-brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.auth-topbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 40px;
  padding: 8px 12px;

  border: 1px solid transparent;
  border-radius: 10px;

  color: var(--auth-muted);

  font-size: 12px;
  font-weight: 500;

  transition:
    background var(--auth-transition),
    color var(--auth-transition),
    border-color var(--auth-transition);
}

.auth-topbar-back svg {
  width: 17px;
  height: 17px;
}

.auth-topbar-back:hover {
  color: var(--auth-navy);
  background: rgba(255, 254, 251, 0.8);
  border-color: var(--auth-border);
}

.auth-topbar-back:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 3px;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.auth-wrap {
  width: 100%;
  min-height: calc(100vh - 78px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 44px 20px 32px;
}

.auth-card {
  position: relative;

  width: 100%;
  max-width: 448px;

  padding: 38px 38px 30px;

  overflow: hidden;

  background: var(--auth-paper);

  border: 1px solid rgba(23, 43, 58, 0.075);
  border-radius: var(--auth-radius);

  box-shadow: var(--auth-shadow);
}

.auth-card::before {
  content: '';

  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 4px;

  background: linear-gradient(
    90deg,
    var(--auth-teal),
    #78A99A
  );
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-heading {
  margin-bottom: 26px;
}

.auth-eyebrow {
  display: inline-block;

  margin-bottom: 12px;

  color: var(--auth-teal);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.5;
}

.auth-title {
  margin: 0;

  color: var(--auth-navy);

  font-size: clamp(27px, 5vw, 33px);
  font-weight: 700;
  letter-spacing: -1.25px;
  line-height: 1.25;
}

.auth-sub {
  max-width: 340px;

  margin: 10px 0 0;

  color: var(--auth-muted);

  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}


/* =========================================================
   FORM ERRORS
   ========================================================= */

.auth-error {
  margin: 0 0 18px;
  padding: 12px 14px;

  color: #8C3434;
  background: #FFF1EF;

  border: 1px solid #F2D4D0;
  border-radius: 10px;

  font-size: 12px;
  line-height: 1.7;

  overflow-wrap: anywhere;
}

.auth-error:not([hidden]) {
  display: block;
}


/* =========================================================
   GOOGLE BUTTON
   ========================================================= */

.auth-google {
  width: 100%;
  min-height: 49px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  padding: 12px 16px;

  color: var(--auth-navy);
  background: var(--auth-paper);

  border: 1px solid #DDE3DF;
  border-radius: var(--auth-radius-sm);

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background var(--auth-transition),
    border-color var(--auth-transition),
    transform var(--auth-transition),
    box-shadow var(--auth-transition);
}

.auth-google-icon {
  width: 19px;
  height: 19px;
}

.auth-google:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: #BFCBC5;

  box-shadow: 0 4px 12px rgba(23, 43, 58, 0.045);
}

.auth-google:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-google:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 3px;
}

.auth-google:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 13px;

  margin: 23px 0;

  color: #89948F;

  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-divider::before,
.auth-divider::after {
  content: '';

  height: 1px;
  flex: 1;

  background: #E9ECE8;
}

.auth-divider > span {
  flex: 0 0 auto;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.auth-field {
  margin-bottom: 19px;
}

.auth-label {
  display: block;

  margin-bottom: 8px;

  color: var(--auth-navy);

  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

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

.auth-label-row .auth-label {
  margin-bottom: 8px;
}

.auth-input {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 49px;

  padding: 12px 14px;

  color: var(--auth-navy);
  background: #FFFFFF;

  border: 1px solid #DDE3DF;
  border-radius: var(--auth-radius-sm);

  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;

  outline: none;

  transition:
    border-color var(--auth-transition),
    box-shadow var(--auth-transition),
    background var(--auth-transition);
}

.auth-input::placeholder {
  color: #A2ACA9;
  opacity: 1;
}

.auth-input:hover {
  border-color: #C4D0CA;
}

.auth-input:focus {
  border-color: var(--auth-teal);

  box-shadow: 0 0 0 3px rgba(47, 109, 112, 0.11);
}

.auth-input:focus-visible {
  outline: none;
}

.auth-input:disabled {
  color: #7B8784;
  background: #F3F5F2;
  cursor: not-allowed;
}


/* =========================================================
   PASSWORD FIELD AND REVEAL PILL
   ========================================================= */

.auth-pw-wrap {
  position: relative;
  width: 100%;
}

.auth-pw-wrap .auth-input {
  padding-right: 88px;
}

.auth-pw-toggle {
  font-family: 'Poppins', sans-serif;
}

.reveal-btn {
  position: absolute;
  top: 50%;
  right: 10px;

  transform: translateY(-50%);

  min-width: 59px;
  min-height: 29px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 10px;

  color: var(--auth-teal);
  background: var(--auth-cream);

  border: 1px solid #DDE5DF;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;

  cursor: pointer;

  transition:
    color var(--auth-transition),
    background var(--auth-transition),
    border-color var(--auth-transition);
}

.reveal-btn:hover {
  color: var(--auth-navy);
  background: var(--auth-mint);
  border-color: #B8D0C3;
}

.reveal-btn:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 3px;
}

.reveal-btn:active {
  transform: translateY(-50%) scale(0.97);
}


/* =========================================================
   REMEMBER ME AND FORGOT PASSWORD
   ========================================================= */

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 12px;

  margin: 3px 0 23px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--auth-muted);

  font-size: 11px;
  font-weight: 400;

  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  width: 15px;
  height: 15px;

  margin: 0;

  accent-color: var(--auth-teal);

  cursor: pointer;
}

.auth-remember input:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 3px;
}

.auth-forgot {
  color: var(--auth-teal);

  font-size: 11px;
  font-weight: 600;

  text-decoration: none;

  transition: color var(--auth-transition);
}

.auth-forgot:hover {
  color: var(--auth-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-forgot:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 3px;
  border-radius: 3px;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.auth-submit {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 13px 18px;

  color: #FFFFFF;
  background: var(--auth-navy);

  border: 1px solid var(--auth-navy);
  border-radius: var(--auth-radius-sm);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;

  cursor: pointer;

  transition:
    background var(--auth-transition),
    border-color var(--auth-transition),
    box-shadow var(--auth-transition),
    transform var(--auth-transition);
}

.auth-submit svg {
  width: 17px;
  height: 17px;

  transition: transform var(--auth-transition);
}

.auth-submit:hover:not(:disabled) {
  background: var(--auth-teal);
  border-color: var(--auth-teal);

  box-shadow: 0 5px 15px rgba(23, 43, 58, 0.12);
}

.auth-submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-submit:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 3px;
}

.auth-submit:disabled {
  opacity: 0.68;
  cursor: wait;
  box-shadow: none;
}


/* =========================================================
   FOOTER LINK
   ========================================================= */

.auth-foot {
  margin: 24px 0 0;
  padding-top: 20px;

  color: var(--auth-muted);

  border-top: 1px solid #ECEFEA;

  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;

  text-align: center;
}

.auth-foot a {
  color: var(--auth-teal);

  font-weight: 600;
  text-decoration: none;

  transition: color var(--auth-transition);
}

.auth-foot a:hover {
  color: var(--auth-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-foot a:focus-visible {
  outline: 2px solid var(--auth-teal);
  outline-offset: 3px;
  border-radius: 3px;
}


/* =========================================================
   BOTTOM BRAND NOTE
   ========================================================= */

.auth-bottom-note {
  margin: 22px 0 0;

  color: #84908A;

  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 1.7;

  text-align: center;
}


/* =========================================================
   EXISTING SIGNUP SUCCESS AND CONFIRMATION STATES
   ========================================================= */

.auth-success {
  padding: 20px 0;
  text-align: center;
}

.auth-success h2 {
  margin: 0 0 10px;

  color: var(--auth-navy);

  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.4;
}

.auth-success p {
  margin: 0 0 18px;

  color: var(--auth-muted);

  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.auth-success a {
  color: var(--auth-teal);
  font-weight: 600;
  text-decoration: none;
}

.auth-success a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-success .auth-submit {
  margin-top: 20px;
}

.auth-hint {
  margin-top: 8px;

  color: var(--auth-muted);

  font-size: 10px;
  line-height: 1.7;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;

  margin: 16px 0 20px;

  color: var(--auth-muted);

  font-size: 10px;
  line-height: 1.8;
}

.auth-terms input {
  flex: 0 0 auto;

  width: 15px;
  height: 15px;

  margin-top: 3px;

  accent-color: var(--auth-teal);
}

.auth-terms a {
  color: var(--auth-teal);
  text-decoration: none;
}

.auth-terms a:hover {
  text-decoration: underline;
}

.auth-meter {
  margin-top: 9px;
}

.auth-meter-bar {
  display: block;

  width: 100%;
  height: 4px;

  overflow: hidden;

  background: #E8ECE7;
  border-radius: 999px;
}

.auth-meter-label {
  display: block;
  margin-top: 6px;

  color: var(--auth-muted);

  font-size: 10px;
  line-height: 1.6;
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

.page-auth a:focus-visible,
.page-auth button:focus-visible,
.page-auth input:focus-visible {
  scroll-margin-block: 20px;
}


/* =========================================================
   RESPONSIVE: TABLET
   ========================================================= */

@media (max-width: 640px) {
  .auth-topbar {
    min-height: 68px;
    padding: 13px 20px;
  }

  .auth-brand {
    gap: 9px;
    font-size: 15px;
  }

  .auth-brand img {
    width: 32px;
    height: 32px;
  }

  .auth-topbar-back {
    gap: 4px;
    padding: 7px 5px;
    font-size: 11px;
  }

  .auth-topbar-back svg {
    width: 15px;
    height: 15px;
  }

  .auth-wrap {
    min-height: calc(100vh - 68px);
    justify-content: flex-start;

    padding: 32px 17px 24px;
  }

  .auth-card {
    max-width: 440px;
    padding: 31px 25px 25px;

    border-radius: 17px;
  }

  .auth-heading {
    margin-bottom: 23px;
  }

  .auth-title {
    font-size: 29px;
    letter-spacing: -0.9px;
  }

  .auth-sub {
    font-size: 12px;
  }

  .auth-bottom-note {
    margin-top: 19px;
  }
}


/* =========================================================
   RESPONSIVE: SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {
  .auth-topbar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .auth-brand {
    gap: 7px;
    font-size: 14px;
  }

  .auth-brand img {
    width: 29px;
    height: 29px;
  }

  .auth-topbar-back {
    font-size: 10px;
  }

  .auth-wrap {
    padding: 23px 12px 20px;
  }

  .auth-card {
    padding: 28px 19px 22px;
    border-radius: 15px;
  }

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

  .auth-options {
    gap: 9px;
  }

  .auth-remember,
  .auth-forgot {
    font-size: 10px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .page-auth *,
  .page-auth *::before,
  .page-auth *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}