/* ==========================================================================
   BiddexHub — auth.css
   Login / registration card with the sliding overlay panel (login.html).
   Mobile: segmented switch + stacked forms.
   Desktop: two-column card, the branded panel slides across on switch.
   ========================================================================== */

/* ---------------------------------------------------------------- page shell */
.auth-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem) 1rem;
  overflow: hidden;
  isolation: isolate;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(46rem 30rem at 86% 6%, rgba(249, 115, 22, 0.18), transparent 68%),
    radial-gradient(52rem 34rem at 6% 94%, rgba(30, 58, 138, 0.18), transparent 70%);
  pointer-events: none;
}

.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(249, 115, 22, 0.2) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 42%, #000 8%, transparent 76%);
  mask-image: radial-gradient(58% 58% at 50% 42%, #000 8%, transparent 76%);
}

html.dark .auth-page::after {
  opacity: 0.32;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 65rem;
}

/* --------------------------------------------------------------------- card */
.auth-card {
  --auth-surface: #ffffff;
  --auth-surface-2: #f1f5f9;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-border: rgba(15, 23, 42, 0.08);
  --auth-line: #e2e8f0;
  --auth-input-bg: #f8fafc;
  --auth-input-border: #e2e8f0;
  --auth-link: #c2410c;

  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--auth-border);
  border-radius: 1.75rem;
  background: var(--auth-surface);
  color: var(--auth-text);
  box-shadow:
    0 1.875rem 5rem -1.875rem rgba(4, 9, 19, 0.35),
    0 0.625rem 1.875rem -1.25rem rgba(4, 9, 19, 0.2);
}

html.dark .auth-card {
  --auth-surface: #0c172d;
  --auth-surface-2: #12233f;
  --auth-text: #f1f5f9;
  --auth-muted: #94a3b8;
  --auth-border: rgba(255, 255, 255, 0.08);
  --auth-line: rgba(255, 255, 255, 0.1);
  --auth-input-bg: rgba(15, 30, 56, 0.75);
  --auth-input-border: rgba(255, 255, 255, 0.12);
  --auth-link: #fb923c;
  box-shadow:
    0 2.5rem 6rem -2rem rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(249, 115, 22, 0.06);
}

/* --------------------------------------------------------------------- tabs */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 1.15rem 1.15rem 0;
  padding: 0.25rem;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  background: var(--auth-surface-2);
}

.auth-tab {
  position: relative;
  z-index: 1;
  padding: 0.6rem 0.5rem;
  border-radius: 999px;
  color: var(--auth-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.auth-tab.is-active {
  color: #fff;
}

.auth-tab__thumb {
  position: absolute;
  inset-block: 0.25rem;
  inset-inline-start: 0.25rem;
  width: calc(50% - 0.375rem);
  border-radius: 999px;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 0.5rem 1rem -0.4rem rgba(234, 88, 12, 0.9);
  transition: transform 0.45s cubic-bezier(0.65, 0.05, 0.36, 1);
}

[dir="ltr"] .auth-card.is-register .auth-tab__thumb {
  transform: translateX(calc(100% + 0.25rem));
}

[dir="rtl"] .auth-card.is-register .auth-tab__thumb {
  transform: translateX(calc(-100% - 0.25rem));
}

/* -------------------------------------------------------------- forms / media */
.auth-media {
  position: relative;
  min-width: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.auth-form__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.75rem;
}

.auth-form--signup {
  display: none;
}

.auth-card.is-register .auth-form--signin {
  display: none;
}

.auth-card.is-register .auth-form--signup {
  display: flex;
  animation: auth-form-in 0.4s ease both;
}

/* ----------------------------------------------------------------- form head */
.auth-form__head {
  margin-bottom: 1.15rem;
}

.auth-form__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--auth-link);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-form__badge--alt {
  background: rgba(30, 58, 138, 0.12);
  color: #1d4ed8;
}

html.dark .auth-form__badge--alt {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

.auth-form__title {
  margin-top: 0.6rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.auth-form__sub {
  margin-top: 0.35rem;
  color: var(--auth-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------- social login */
.auth-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.auth-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  border: 1px solid var(--auth-border);
  border-radius: 0.8rem;
  background: var(--auth-surface);
  color: var(--auth-text);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-social:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0.5rem 1rem -0.6rem rgba(15, 23, 42, 0.4);
}

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

.auth-social:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.auth-social i {
  font-size: 1rem;
}

/* -------------------------------------------------------------------- divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 1.05rem;
  color: var(--auth-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

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

/* --------------------------------------------------------------------- field */
.auth-field {
  margin-top: 0.85rem;
}

.auth-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--auth-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--auth-input-border);
  border-radius: 0.8rem;
  background: var(--auth-input-bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.auth-input:focus-within {
  border-color: rgba(249, 115, 22, 0.7);
  background: var(--auth-surface);
  box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.14);
}

.auth-input__icon {
  position: absolute;
  inset-inline-start: 0.9rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  pointer-events: none;
  transition: color 0.25s ease;
}

.auth-input:focus-within .auth-input__icon {
  color: #f97316;
}

.auth-input__field {
  width: 100%;
  padding: 0.75rem 0.9rem;
  padding-inline-start: 2.5rem;
  border: 0;
  border-radius: inherit;
  outline: none;
  background: transparent;
  color: var(--auth-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-input__field::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.auth-input--password .auth-input__field {
  padding-inline-end: 2.6rem;
}

.auth-input__toggle {
  position: absolute;
  inset-inline-end: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  color: var(--auth-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-input__toggle:hover {
  background: var(--auth-surface-2);
  color: var(--auth-link);
}

.auth-field.is-invalid .auth-input {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.12);
}

.auth-field.is-invalid .auth-input__icon {
  color: #dc2626;
}

.auth-error {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  color: #dc2626;
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

html.dark .auth-error {
  color: #fca5a5;
}

.auth-error.is-visible {
  max-height: 4rem;
  margin-top: 0.3rem;
  opacity: 1;
}

/* ------------------------------------------------------------ password meter */
.auth-strength {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  --strength-color: var(--auth-muted);
}

.auth-strength__bars {
  display: flex;
  flex: 1;
  gap: 0.25rem;
}

.auth-strength__bar {
  flex: 1;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--auth-line);
  transition: background-color 0.3s ease;
}

.auth-strength[data-level="1"] {
  --strength-color: #dc2626;
}
.auth-strength[data-level="2"] {
  --strength-color: #d97706;
}
.auth-strength[data-level="3"] {
  --strength-color: #65a30d;
}
.auth-strength[data-level="4"] {
  --strength-color: #059669;
}

.auth-strength[data-level="1"] .auth-strength__bar:nth-child(-n + 1),
.auth-strength[data-level="2"] .auth-strength__bar:nth-child(-n + 2),
.auth-strength[data-level="3"] .auth-strength__bar:nth-child(-n + 3),
.auth-strength[data-level="4"] .auth-strength__bar:nth-child(-n + 4) {
  background: var(--strength-color);
}

.auth-strength__label {
  min-width: 3.25rem;
  color: var(--strength-color);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: end;
}

/* ------------------------------------------------------------------ checkbox */
.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--auth-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.auth-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-check__box {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  border: 1.5px solid var(--auth-input-border);
  border-radius: 0.35rem;
  background: var(--auth-input-bg);
  color: transparent;
  font-size: 0.55rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-check input:checked + .auth-check__box {
  border-color: transparent;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
}

.auth-check input:focus-visible + .auth-check__box {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* account type (vendor / buyer) */
.auth-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.auth-role {
  position: relative;
  cursor: pointer;
}

.auth-role input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-role__box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--auth-input-border);
  border-radius: 0.8rem;
  background: var(--auth-input-bg);
  color: var(--auth-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.auth-role input:checked + .auth-role__box {
  border-color: rgba(249, 115, 22, 0.7);
  background: rgba(249, 115, 22, 0.12);
  color: var(--auth-link);
}

.auth-role input:focus-visible + .auth-role__box {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.auth-field.is-invalid .auth-role__box {
  border-color: rgba(239, 68, 68, 0.55);
}

.auth-check--terms {
  align-items: flex-start;
}

.auth-check--terms a {
  color: var(--auth-link);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-field.is-invalid .auth-check__box {
  border-color: #dc2626;
}

/* ---------------------------------------------------------------------- rows */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.auth-link {
  color: var(--auth-link);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.auth-link:hover {
  opacity: 0.78;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link--strong {
  font-weight: 800;
}

/* -------------------------------------------------------------------- submit */
.auth-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 3rem;
  margin-top: 1.15rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 60%, #9a3412 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 0.75rem 1.5rem -0.75rem rgba(194, 65, 12, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 1rem 1.75rem -0.75rem rgba(194, 65, 12, 0.95);
  filter: saturate(1.08);
}

.auth-submit:active {
  transform: translateY(1px) scale(0.995);
}

.auth-submit[disabled] {
  cursor: progress;
  opacity: 0.9;
  transform: none;
}

.auth-submit__arrow {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

[dir="ltr"] .auth-submit__arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .auth-submit:hover .auth-submit__arrow {
  transform: translateX(-3px);
}

[dir="ltr"] .auth-submit:hover .auth-submit__arrow {
  transform: scaleX(-1) translateX(-3px);
}

.auth-submit__spinner {
  display: none;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

.auth-submit.is-loading .auth-submit__spinner {
  display: inline-block;
}

.auth-submit.is-loading .auth-submit__arrow {
  display: none;
}

/* ------------------------------------------------------------- switch / notes */
.auth-switch {
  margin-top: 0.9rem;
  color: var(--auth-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.auth-switch .auth-link {
  margin-inline-start: 0.25rem;
}

.auth-note {
  margin-top: 0.85rem;
  color: var(--auth-muted);
  font-size: 0.625rem;
  line-height: 1.6;
  text-align: center;
  opacity: 0.9;
}

/* ------------------------------------------------------------------- notices */
.auth-alert {
  display: none;
  margin-bottom: 0.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 0.7rem;
  background: rgba(249, 115, 22, 0.1);
  color: var(--auth-link);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.auth-alert.is-visible {
  display: block;
  animation: auth-form-in 0.25s ease both;
}

.auth-alert.is-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ------------------------------------------------------------------- success */
.auth-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.5rem;
  text-align: center;
}

.auth-form.is-done .auth-success {
  display: flex;
}

.auth-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.14);
  color: #059669;
  font-size: 1.5rem;
}

html.dark .auth-success__icon {
  color: #34d399;
}

.auth-success__text {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
}

.auth-success__link {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-form.is-done .auth-form__head,
.auth-form.is-done .auth-socials,
.auth-form.is-done .auth-divider,
.auth-form.is-done .auth-field,
.auth-form.is-done .auth-row,
.auth-form.is-done .auth-submit,
.auth-form.is-done .auth-switch,
.auth-form.is-done .auth-alert,
.auth-form.is-done .auth-note {
  display: none;
}

/* ------------------------------------------------------------------- overlay */
.auth-overlay {
  position: relative;
  display: none;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(150deg, #ea580c 0%, #c2410c 34%, #8a3410 64%, #0f1e38 100%);
}

.auth-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 5%, transparent 72%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 5%, transparent 72%);
}

.auth-overlay__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  translate: -50% -50%;
  animation: auth-ring-pulse 7s ease-in-out infinite;
}

.auth-ring--1 {
  width: 15rem;
  height: 15rem;
}

.auth-ring--2 {
  width: 23rem;
  height: 23rem;
  animation-delay: 1s;
  opacity: 0.8;
}

.auth-ring--3 {
  width: 31rem;
  height: 31rem;
  animation-delay: 2s;
  opacity: 0.6;
}

.auth-dot {
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #fff;
  opacity: 0.45;
  box-shadow: 0 0 0.75rem rgba(255, 255, 255, 0.8);
  animation: auth-float 5.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.auth-overlay__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 2.5rem;
  text-align: center;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.65, 0.05, 0.36, 1),
    visibility 0s linear 0.45s;
}

.auth-overlay__panel--hello {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.auth-overlay__panel--welcome {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.85rem);
}

.auth-card.is-register .auth-overlay__panel--hello {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.85rem);
}

.auth-card.is-register .auth-overlay__panel--welcome {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.auth-overlay__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.1rem;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 1rem 2rem -0.9rem rgba(0, 0, 0, 0.55);
}

.auth-overlay__logo img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
}

.auth-overlay__title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.25);
}

.auth-overlay__text {
  max-width: 19rem;
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.875rem;
  line-height: 1.75;
}

.auth-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  height: 2.75rem;
  margin-top: 1.5rem;
  padding: 0 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.auth-ghost:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.26);
}

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

.auth-overlay__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.6rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.auth-overlay__stat::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0.5rem #4ade80;
}

/* ---------------------------------------------------------------- desktop (lg) */
@media (min-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr 1fr;
    min-height: 41.5rem;
  }

  .auth-tabs {
    display: none;
  }

  /* both forms are stacked in the same column and cross-fade */
  .auth-form,
  .auth-form--signup,
  .auth-card.is-register .auth-form--signin,
  .auth-card.is-register .auth-form--signup {
    display: flex;
  }

  .auth-media {
    grid-area: 1 / 1;
    transition: transform 0.68s cubic-bezier(0.65, 0.05, 0.36, 1);
  }

  .auth-overlay {
    display: block;
    grid-area: 1 / 2;
    z-index: 2;
    border-start-start-radius: 3.25rem;
    border-end-start-radius: 3.25rem;
    transition:
      transform 0.68s cubic-bezier(0.65, 0.05, 0.36, 1),
      border-start-start-radius 0.68s cubic-bezier(0.65, 0.05, 0.36, 1),
      border-end-start-radius 0.68s cubic-bezier(0.65, 0.05, 0.36, 1),
      border-start-end-radius 0.68s cubic-bezier(0.65, 0.05, 0.36, 1),
      border-end-end-radius 0.68s cubic-bezier(0.65, 0.05, 0.36, 1);
  }

  .auth-card.is-register .auth-overlay {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: 3.25rem;
    border-end-end-radius: 3.25rem;
  }

  [dir="ltr"] .auth-card.is-register .auth-media {
    transform: translateX(100%);
  }

  [dir="ltr"] .auth-card.is-register .auth-overlay {
    transform: translateX(-100%);
  }

  [dir="rtl"] .auth-card.is-register .auth-media {
    transform: translateX(-100%);
  }

  [dir="rtl"] .auth-card.is-register .auth-overlay {
    transform: translateX(100%);
  }

  .auth-form {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    animation: none;
    transition:
      opacity 0.45s ease,
      transform 0.55s cubic-bezier(0.65, 0.05, 0.36, 1),
      visibility 0s linear 0.45s;
  }

  .auth-form__inner {
    margin: auto;
    max-width: 26rem;
    padding: 2.5rem 2rem;
  }

  .auth-form--signin {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .auth-form--signup {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem);
  }

  .auth-card.is-register .auth-form--signin {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
  }

  .auth-card.is-register .auth-form--signup {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .auth-switch {
    display: none;
  }

  .auth-note {
    margin-top: 1rem;
  }
}

/* ------------------------------------------------------------- small screens */
@media (max-width: 380px) {
  .auth-form__inner {
    padding-inline: 1rem;
  }

  .auth-form__title {
    font-size: 1.3rem;
  }
}

/* ---------------------------------------------------------------- animations */
@keyframes auth-form-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes auth-ring-pulse {
  0%,
  100% {
    opacity: 0.35;
    scale: 1;
  }
  50% {
    opacity: 0.85;
    scale: 1.04;
  }
}

@keyframes auth-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-0.65rem);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-ring,
  .auth-dot,
  .auth-submit__spinner {
    animation: none !important;
  }

  .auth-form.is-done,
  .auth-card.is-register .auth-form--signup {
    animation: none !important;
  }

  .auth-media,
  .auth-overlay,
  .auth-tab__thumb,
  .auth-form,
  .auth-overlay__panel {
    transition-duration: 0.001ms !important;
  }
}


