/* Auth pages — split-pane sign-in / sign-up (Crextio-style template) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --auth-bg: #2f2f2f;
  --auth-panel: #f6f3ee;
  --auth-panel-mid: #f8f5ef;
  --auth-panel-end: #f3e9c8;
  --auth-ink: #1c1c1c;
  --auth-muted: #7a7a7a;
  --auth-line: #e4e0d8;
  --auth-yellow: #f5c518;
  --auth-yellow-hover: #e8b80f;
  --auth-white: #ffffff;
  --auth-radius-card: 36px;
  --auth-radius-pill: 999px;
  --auth-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  /* Seam blend (form → photo) — light */
  --auth-seam-solid: #f6f3ee;
  --auth-seam-mid: rgba(246, 243, 238, 0.45);
  --auth-seam-edge: rgba(246, 243, 238, 0);
  --auth-seam-photo-start: rgba(246, 243, 238, 0.55);
  --auth-seam-photo-mid: rgba(246, 243, 238, 0.2);
  --auth-seam-photo-end: rgba(246, 243, 238, 0);
  --auth-visual-bg: #1a1a1a;
  --auth-vignette-mid: rgba(0, 0, 0, 0.03);
  --auth-vignette-end: rgba(0, 0, 0, 0.12);
  --auth-vignette-top: rgba(0, 0, 0, 0.05);
  --auth-vignette-bottom: rgba(0, 0, 0, 0.18);
}

body.has-auth-page {
  font-family: var(--auth-font);
  /* Collapse anonymous BOM/whitespace line boxes (body line-height is 28px in style.css) */
  line-height: 0;
}

body.has-auth-page .auth-shell,
body.has-auth-page .footer-area,
body.has-auth-page .header-menu-area,
body.has-auth-page .page-loader,
body.has-auth-page .menu-search-panel,
body.has-auth-page .off-canvas-menu {
  line-height: normal;
}

/* Flush under fixed header — body-overlay sits between header and main, so target shell directly */
body.has-auth-page .auth-shell,
body.has-public-site.has-auth-page > .auth-shell {
  background: var(--auth-panel) !important;
  margin-top: var(--public-header-height, 70px) !important;
  padding: 0 !important;
  min-height: calc(100vh - var(--public-header-height, 70px));
  align-items: stretch;
  justify-content: stretch;
}

.auth-shell {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0 !important;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(100vh - var(--public-header-height, 70px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: var(--auth-panel);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.auth-form-pane {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 44px 28px;
  background: linear-gradient(165deg, var(--auth-panel) 0%, var(--auth-panel-mid) 55%, var(--auth-panel-end) 100%);
  overflow: visible;
  min-height: 0;
}

/* Soft panel wash that bleeds into the photo (theme-aware via --auth-seam-*) */
.auth-form-pane::after {
  content: '';
  position: absolute;
  top: 0;
  right: -36px;
  bottom: 0;
  width: 56px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--auth-seam-solid) 0%,
    var(--auth-seam-mid) 45%,
    var(--auth-seam-edge) 100%
  );
}

.auth-form-body {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  animation: auth-form-in 0.6s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-form-body > form {
  width: 100%;
}

.auth-form-pane--register {
  justify-content: center;
  padding: 28px 36px 20px;
}

.auth-form-pane--register .auth-form-body {
  margin-top: 0;
}

.auth-form-pane--register .auth-field {
  margin-bottom: 10px;
}

.auth-form-pane--register .auth-subtitle {
  margin-bottom: 14px;
}

.auth-form-pane--register .auth-title {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
}

.auth-form-pane--register .auth-input {
  height: 44px;
}

.auth-form-pane--register .auth-submit {
  height: 46px;
  margin-top: 4px;
}

.auth-form-pane--register .auth-social {
  margin-top: 10px;
}

.auth-form-pane--register .auth-footer {
  padding-top: 16px;
}

@keyframes auth-form-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-title {
  margin: 0 0 6px;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
  line-height: 1.2;
}

.auth-subtitle {
  margin: 0 0 28px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--auth-muted);
  line-height: 1.45;
}

.auth-alert {
  border-radius: 14px;
  font-size: 0.85rem;
  text-align: left;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

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

.auth-field label {
  display: block;
  margin: 0 0 7px 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5c5c5c;
}

.auth-field .form-group,
.auth-field .auth-input-wrap {
  position: relative;
  margin: 0;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent !important;
  border-radius: var(--auth-radius-pill) !important;
  background: var(--auth-white) !important;
  box-shadow: 0 1px 2px rgba(28, 28, 28, 0.04), 0 8px 20px rgba(28, 28, 28, 0.04);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--auth-ink) !important;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.auth-input::placeholder {
  color: #b0aaa0;
  font-weight: 400;
}

.auth-input:focus {
  border-color: rgba(245, 197, 24, 0.65);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.22), 0 8px 20px rgba(28, 28, 28, 0.06);
}

.auth-input.is-invalid,
.auth-field.has-error .auth-input {
  border-color: #e57373;
}

.auth-field-error {
  display: block;
  margin: 6px 4px 0;
  font-size: 0.78rem;
  color: #c62828;
}

.auth-input-wrap--password .auth-input {
  padding-right: 48px;
}

.auth-eye {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 14px;
  margin-top: auto;
  margin-bottom: auto;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9a948a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  line-height: 1;
  /* Avoid translateY centering — dark reduced-motion rules zero transforms */
  transform: none;
}

.auth-eye:hover {
  color: var(--auth-ink);
  background: rgba(0, 0, 0, 0.04);
}

.auth-eye .la-eye-slash {
  display: none;
}

.auth-eye.is-visible .la-eye {
  display: none;
}

.auth-eye.is-visible .la-eye-slash {
  display: inline-block;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--auth-radius-pill);
  background: var(--auth-yellow);
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 10px 24px rgba(245, 197, 24, 0.28);
}

.auth-submit:hover {
  background: var(--auth-yellow-hover);
  color: var(--auth-ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(245, 197, 24, 0.34);
}

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

.auth-social {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: var(--auth-radius-pill);
  border: 1.5px solid #ddd7cd;
  background: var(--auth-white);
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.auth-social-btn:hover {
  color: var(--auth-ink);
  text-decoration: none;
  border-color: #c9c2b6;
  background: #fffefb;
  transform: translateY(-1px);
}

.auth-social-btn svg {
  flex-shrink: 0;
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.auth-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 0;
  font-size: 0.82rem;
  color: var(--auth-muted);
}

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

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer .auth-terms {
  color: var(--auth-muted);
  font-weight: 500;
}

.auth-visual {
  position: relative;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  background: var(--auth-visual-bg);
  margin-left: -20px;
}

/* Photo side of the seam — panel color dissolves into the image */
.auth-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(18%, 120px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--auth-seam-photo-start) 0%,
    var(--auth-seam-photo-mid) 40%,
    var(--auth-seam-photo-end) 100%
  );
}

.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Keep a light vignette, but stay clear of the left blend zone */
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 18%,
      var(--auth-vignette-mid) 50%,
      var(--auth-vignette-end) 100%
    ),
    linear-gradient(180deg, var(--auth-vignette-top) 0%, var(--auth-vignette-bottom) 100%);
}

.auth-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.auth-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.auth-carousel-img {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
  transform: scale(1.08) translate3d(0, 0, 0);
}

body.has-auth-page:not(.auth-reduce-motion) .auth-carousel-slide.is-active .auth-carousel-img {
  animation: auth-kenburns 7s ease-in-out forwards;
}

body.has-auth-page:not(.auth-reduce-motion) .auth-carousel-slide.is-active.auth-carousel-slide--alt .auth-carousel-img {
  animation-name: auth-kenburns-alt;
}

@keyframes auth-kenburns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.18) translate3d(-2.5%, -1.5%, 0);
  }
}

@keyframes auth-kenburns-alt {
  from {
    transform: scale(1.14) translate3d(-2%, 1%, 0);
  }
  to {
    transform: scale(1.05) translate3d(1.5%, -1%, 0);
  }
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, background 0.2s;
}

.auth-close:hover {
  color: #111;
  background: #fff;
  transform: scale(1.05);
  text-decoration: none;
}

.auth-float {
  position: absolute;
  z-index: 3;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  will-change: translate, rotate, scale;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

/* Floating / sway + soft elastic bounce — subtle decorative motion */
.auth-float--task {
  animation-name: auth-float-elastic-task;
  animation-duration: 8s !important;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite !important;
}

.auth-float--week {
  animation-name: auth-float-elastic-week;
  animation-duration: 9.5s !important;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite !important;
  animation-delay: -1.5s;
}

.auth-float--meet {
  animation-name: auth-float-elastic-meet;
  animation-duration: 8.8s !important;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite !important;
  animation-delay: -2.2s;
}

@keyframes auth-float-elastic-task {
  0%,
  100% {
    translate: 0 0;
    rotate: -0.6deg;
    scale: 1 1;
  }
  25% {
    translate: 6px -8px;
    rotate: 0.8deg;
    scale: 1.015 0.99;
  }
  50% {
    translate: -5px -12px;
    rotate: -0.7deg;
    scale: 0.99 1.015;
  }
  75% {
    translate: 4px -6px;
    rotate: 0.5deg;
    scale: 1.01 0.995;
  }
}

@keyframes auth-float-elastic-week {
  0%,
  100% {
    translate: -50% 0;
    rotate: 0.4deg;
    scale: 1 1;
  }
  33% {
    translate: calc(-50% + 7px) -7px;
    rotate: -0.7deg;
    scale: 1.012 0.992;
  }
  66% {
    translate: calc(-50% - 6px) -10px;
    rotate: 0.6deg;
    scale: 0.992 1.012;
  }
}

@keyframes auth-float-elastic-meet {
  0%,
  100% {
    translate: 0 0;
    rotate: 0.5deg;
    scale: 1 1;
  }
  30% {
    translate: -6px -7px;
    rotate: -0.6deg;
    scale: 1.014 0.99;
  }
  60% {
    translate: 5px -11px;
    rotate: 0.7deg;
    scale: 0.99 1.014;
  }
  85% {
    translate: -3px -5px;
    rotate: -0.3deg;
    scale: 1.008 0.996;
  }
}

.auth-float--task {
  top: 14%;
  left: 8%;
  padding: 14px 16px;
  min-width: 200px;
  background: var(--auth-yellow);
  color: var(--auth-ink);
}

.auth-float--task strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.auth-float--task span {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}

.auth-float--week {
  top: 42%;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-float--week .day {
  width: 36px;
  text-align: center;
  font-size: 0.68rem;
  color: #666;
  border-radius: 10px;
  padding: 4px 0;
  transition: background 0.45s ease, color 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
}

.auth-float--week .day b {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--auth-ink);
  transition: color 0.45s ease;
}

.auth-float--week .day.is-active {
  background: var(--auth-ink);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.auth-float--week .day.is-active b {
  color: #fff;
}

.auth-float--meet {
  bottom: 12%;
  left: 10%;
  right: 10%;
  max-width: 280px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
}

.auth-float--meet strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--auth-ink);
  margin-bottom: 2px;
}

.auth-float--meet span {
  font-size: 0.75rem;
  color: var(--auth-muted);
}

.auth-avatars {
  display: flex;
  margin-top: 10px;
}

.auth-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -8px;
  background: #ddd;
}

.auth-avatars img:first-child {
  margin-left: 0;
}

/* Neutralize the generic public-site offset on the overlay sibling; auth-shell owns the offset */
body.has-public-site.has-auth-page > header.header-menu-area + .body-overlay {
  margin-top: 0 !important;
}

/* ── Dark theme: auth split-pane ── */
[data-theme='dark'] {
  --auth-bg: #0d1117;
  --auth-panel: #141a22;
  --auth-panel-mid: #1a222d;
  --auth-panel-end: #1e2833;
  --auth-ink: #eef2f6;
  --auth-muted: #9aa6b2;
  --auth-line: #2c3642;
  --auth-yellow: #f5c518;
  --auth-yellow-hover: #ffd84a;
  --auth-white: #1c2430;
  --auth-input-border: rgba(255, 255, 255, 0.06);
  /* Seam blend (form → photo) — dark charcoal, mirrors light cream treatment */
  --auth-seam-solid: #141a22;
  --auth-seam-mid: rgba(20, 26, 34, 0.5);
  --auth-seam-edge: rgba(20, 26, 34, 0);
  --auth-seam-photo-start: rgba(20, 26, 34, 0.62);
  --auth-seam-photo-mid: rgba(20, 26, 34, 0.22);
  --auth-seam-photo-end: rgba(20, 26, 34, 0);
  --auth-visual-bg: #0a0c10;
  --auth-vignette-mid: rgba(0, 0, 0, 0.12);
  --auth-vignette-end: rgba(0, 0, 0, 0.35);
  --auth-vignette-top: rgba(0, 0, 0, 0.12);
  --auth-vignette-bottom: rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] body.has-auth-page .auth-shell,
[data-theme='dark'] body.has-public-site.has-auth-page > .auth-shell {
  background: var(--auth-panel) !important;
}

[data-theme='dark'] .auth-card {
  background: var(--auth-panel);
}

[data-theme='dark'] .auth-form-pane {
  background: linear-gradient(
    165deg,
    var(--auth-panel) 0%,
    var(--auth-panel-mid) 55%,
    var(--auth-panel-end) 100%
  );
}

[data-theme='dark'] .auth-title,
[data-theme='dark'] .auth-submit,
[data-theme='dark'] .auth-footer a,
[data-theme='dark'] .auth-link:hover {
  color: var(--auth-ink);
}

[data-theme='dark'] .auth-subtitle,
[data-theme='dark'] .auth-link,
[data-theme='dark'] .auth-footer,
[data-theme='dark'] .auth-footer .auth-terms,
[data-theme='dark'] .auth-field label {
  color: var(--auth-muted);
}

[data-theme='dark'] .auth-input {
  background: var(--auth-white) !important;
  border-color: var(--auth-input-border) !important;
  color: var(--auth-ink) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.18);
}

[data-theme='dark'] .auth-input::placeholder {
  color: #6b7682;
}

[data-theme='dark'] .auth-input:focus {
  border-color: rgba(245, 197, 24, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18), 0 8px 20px rgba(0, 0, 0, 0.25);
}

[data-theme='dark'] .auth-eye {
  color: #8b96a3;
}

[data-theme='dark'] .auth-eye:hover {
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .auth-submit {
  background: var(--auth-yellow);
  color: #1c1c1c;
  box-shadow: 0 10px 24px rgba(245, 197, 24, 0.18);
}

[data-theme='dark'] .auth-submit:hover {
  background: var(--auth-yellow-hover);
  color: #1c1c1c;
  box-shadow: 0 14px 28px rgba(245, 197, 24, 0.24);
}

[data-theme='dark'] .auth-social-btn {
  background: var(--auth-white);
  border-color: var(--auth-line);
  color: var(--auth-ink);
}

[data-theme='dark'] .auth-social-btn:hover {
  background: #232c38;
  border-color: #3a4654;
  color: var(--auth-ink);
}

[data-theme='dark'] .auth-alert.alert-warning {
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.28);
  color: #f5e6a8;
}

[data-theme='dark'] .auth-alert.alert-danger {
  background: rgba(229, 115, 115, 0.12);
  border-color: rgba(229, 115, 115, 0.28);
  color: #f5c2c2;
}

[data-theme='dark'] .auth-close {
  background: rgba(28, 36, 48, 0.92);
  color: #d7dee6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

[data-theme='dark'] .auth-close:hover {
  background: #252e3a;
  color: #fff;
}

[data-theme='dark'] .auth-float {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

[data-theme='dark'] .auth-float--task {
  background: var(--auth-yellow);
  color: #1c1c1c;
}

[data-theme='dark'] .auth-float--week {
  background: rgba(28, 36, 48, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .auth-float--week .day {
  color: #9aa6b2;
}

[data-theme='dark'] .auth-float--week .day b {
  color: var(--auth-ink);
}

[data-theme='dark'] .auth-float--week .day.is-active {
  background: var(--auth-yellow);
  color: #1c1c1c;
  box-shadow: 0 6px 14px rgba(245, 197, 24, 0.25);
}

[data-theme='dark'] .auth-float--week .day.is-active b {
  color: #1c1c1c;
}

[data-theme='dark'] .auth-float--meet {
  background: rgba(28, 36, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .auth-float--meet strong {
  color: var(--auth-ink);
}

[data-theme='dark'] .auth-float--meet span {
  color: var(--auth-muted);
}

[data-theme='dark'] .auth-avatars img {
  border-color: #1c2430;
  background: #2a3340;
}

@media (max-width: 960px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-visual {
    min-height: 42vh;
    order: -1;
    margin-left: 0;
  }

  .auth-form-pane::after,
  .auth-visual::before {
    display: none;
  }

  .auth-float--week {
    display: none;
  }

  .auth-form-pane {
    padding: 28px 24px 24px;
  }

  .auth-form-body {
    margin-top: 20px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 0;
  }

  .auth-card {
    border-radius: 0;
    min-height: calc(100vh - var(--public-header-height, 56px));
  }

  .auth-row {
    grid-template-columns: 1fr;
  }

  .auth-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-float--task {
    top: 12%;
    left: 5%;
    min-width: 160px;
    padding: 10px 12px;
  }

  .auth-float--meet {
    bottom: 8%;
    max-width: 220px;
  }

  .auth-visual {
    min-height: 36vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form-body {
    animation: none !important;
  }

  .auth-carousel-img {
    animation: none !important;
  }

  /* Re-enable decorative float motion killed by dark-theme global reduced-motion */
  body.has-auth-page .auth-float--task,
  body.has-auth-page .auth-float--week,
  body.has-auth-page .auth-float--meet,
  [data-theme='dark'] body.has-auth-page .auth-float--task,
  [data-theme='dark'] body.has-auth-page .auth-float--week,
  [data-theme='dark'] body.has-auth-page .auth-float--meet {
    animation-duration: 8s !important;
    animation-iteration-count: infinite !important;
    transition-duration: 0.45s !important;
  }

  body.has-auth-page .auth-float--week,
  [data-theme='dark'] body.has-auth-page .auth-float--week {
    animation-duration: 9.5s !important;
  }

  body.has-auth-page .auth-float--meet,
  [data-theme='dark'] body.has-auth-page .auth-float--meet {
    animation-duration: 8.8s !important;
  }

  body.has-auth-page .auth-float--week .day,
  [data-theme='dark'] body.has-auth-page .auth-float--week .day {
    transition-duration: 0.45s !important;
  }
}
