:root {
  --bg-1: #fff4df;
  --bg-2: #d9efe8;
  --ink: #102a43;
  --ink-soft: #486581;
  --brand: #0f766e;
  --brand-2: #b45309;
  --card: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: linear-gradient(130deg, var(--bg-1), var(--bg-2));
}

body.auth-layout {
  min-height: 100vh;
  overflow-y: auto;
}

h1,
h2,
h3,
h4,
.brand-font {
  font-family: "Outfit", sans-serif;
}

.background-art {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.15), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(180, 83, 9, 0.2), transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(16, 42, 67, 0.12), transparent 28%);
}

.glass-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.ant-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  color: currentColor;
  vertical-align: -0.12em;
}

.ant-icon-sm {
  font-size: 0.92rem;
}

.status-icon {
  font-size: 0.86rem;
}

.step-ant-icon {
  font-size: 0.78rem;
  margin-right: 0.28rem;
  position: relative;
  top: 0.04rem;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.input-base {
  width: 100%;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: #fff;
  outline: none;
}

.input-base:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.btn-primary {
  background: linear-gradient(90deg, #0f766e, #0ea5a0);
  color: #fff;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.auth-hero-surface-login {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.15), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(45, 212, 191, 0.18), transparent 22%),
    linear-gradient(145deg, #134e4a 0%, #0f766e 48%, #0ea5a0 100%);
}

.auth-hero-surface-register {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 214, 102, 0.22), transparent 20%),
    linear-gradient(145deg, #7c2d12 0%, #c2410c 45%, #ea580c 100%);
}

.auth-submit-btn {
  color: #fff;
}

.auth-submit-btn:hover {
  filter: brightness(1.06);
}

.auth-submit-btn-login {
  background: linear-gradient(90deg, #134e4a, #0f766e 52%, #14b8a6);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
}

.auth-submit-btn-register {
  background: linear-gradient(90deg, #7c2d12, #c2410c 52%, #ea580c);
  box-shadow: 0 16px 28px rgba(194, 65, 12, 0.24);
}

.ant-icon-spin {
  animation: spin 0.8s linear infinite;
}

.bag-card-new {
  animation: bagReveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.tracking-progress {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 0.8rem;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
}

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

.progress-steps::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0.56rem;
  height: 2px;
  background: #d9e2ec;
}

.progress-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 9999px;
  display: inline-block;
  border: 2px solid #cbd5e1;
  background: #ffffff;
}

.step-label {
  font-size: 0.72rem;
  margin-top: 0.35rem;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-step.is-complete .step-dot {
  background: #0f766e;
  border-color: #0f766e;
}

.progress-step.is-complete .step-label {
  color: #0f766e;
}

.progress-step.is-current .step-dot {
  border-color: #b45309;
  box-shadow: 0 0 0 7px rgba(180, 83, 9, 0.18);
  animation: pulseRing 1.5s ease-out infinite;
}

.progress-step.is-current .step-label {
  color: #9a3412;
}

.tracking-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f766e;
}

.tracking-live.delivered-live {
  color: #166534;
}

.progress-shimmer {
  height: 5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #d9e2ec 0%, #0ea5a0 50%, #d9e2ec 100%);
  background-size: 200% 100%;
  animation: shimmer 1.7s linear infinite;
}

.bag-image-preview-wrap {
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.6rem;
  background: #f8fafc;
}

.bag-image-preview {
  width: 100%;
  max-width: 180px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #dbe5ef;
  border-radius: 0.6rem;
  display: block;
}

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

@keyframes bagReveal {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }

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

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.35);
  }

  80% {
    box-shadow: 0 0 0 10px rgba(180, 83, 9, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(180, 83, 9, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.badge {
  border-radius: 9999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-in-transit {
  background: #ffedd5;
  color: #9a3412;
}

.badge-delivered {
  background: #dcfce7;
  color: #166534;
}

.badge-processing {
  background: #e0f2fe;
  color: #075985;
}


.auth-screen {
  min-height: 100vh;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-screen-register {
  align-items: stretch;
}

.auth-card-wrap {
  max-height: calc(100vh - 2rem);
}

.auth-form-scroll {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.auth-shell {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
  view-transition-name: auth-shell;
  transition: min-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-shell-login {
  min-height: 35rem;
  border-radius: 2rem 5.75rem 2.3rem 6.5rem;
  transform: translateX(1.25rem);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.auth-shell-register {
  min-height: 41.5rem;
  border-radius: 5.75rem 2rem 6.5rem 2.3rem;
  transform: translateX(-1.25rem);
  box-shadow: 0 32px 82px rgba(15, 23, 42, 0.2);
}

.auth-shell-outline,
.auth-shell-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-shell-outline {
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  padding: 0.55rem;
  opacity: 0.8;
}

.auth-shell-aura {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(14, 165, 160, 0.22), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(180, 83, 9, 0.18), transparent 32%);
}

.auth-hero-panel,
.auth-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-hero-panel {
  justify-content: center;
}

.auth-hero-panel-login {
  order: 1;
  transform: translateX(0);
}

.auth-hero-panel-register {
  order: 2;
  transform: translateX(0.75rem);
}

.auth-panel {
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(180, 83, 9, 0.05));
}

.auth-panel-login {
  order: 2;
  min-height: 35rem;
  transform: translateX(0.85rem);
  border-top-left-radius: 3.25rem;
  border-bottom-left-radius: 5rem;
}

.auth-panel-register {
  order: 1;
  min-height: 41.5rem;
  transform: translateX(-0.85rem);
  border-top-right-radius: 3.25rem;
  border-bottom-right-radius: 5rem;
}

.auth-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-toggle-indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  width: calc(50% - 0.525rem);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  view-transition-name: auth-toggle-indicator;
}

.auth-toggle-indicator-login {
  left: 0.35rem;
  transform: translateX(0);
}

.auth-toggle-indicator-register {
  left: 0.35rem;
  transform: translateX(calc(100% + 0.35rem));
}

.auth-toggle-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.25s ease;
}

.auth-toggle-btn:hover {
  color: var(--ink);
}

.auth-toggle-btn.is-active {
  color: var(--ink);
}

.auth-toggle-btn:active {
  transform: scale(0.985);
}

.auth-form-stage {
  view-transition-name: auth-form-stage;
  animation: authStageReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(auth-shell),
::view-transition-new(auth-shell) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(auth-form-stage) {
  animation: authStageOut 0.24s ease forwards;
}

::view-transition-new(auth-form-stage) {
  animation: authStageIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

::view-transition-old(auth-toggle-indicator),
::view-transition-new(auth-toggle-indicator) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes authStageReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

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

@keyframes authStageOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    filter: blur(6px);
  }
}

@keyframes authStageIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (min-width: 768px) {
  .auth-screen-register .auth-card-wrap {
    height: calc(100vh - 1.5rem);
    max-height: calc(100vh - 1.5rem);
  }

  .auth-screen-register .auth-shell-register,
  .auth-screen-register .auth-panel-register {
    min-height: 0;
    height: 100%;
  }

  .auth-screen-register .auth-panel-register {
    justify-content: flex-start;
  }
}

@media (max-height: 760px) {
  body.auth-layout {
    overflow-y: auto;
  }

  .auth-card-wrap {
    max-height: none;
  }

  .auth-form-scroll {
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .auth-screen {
    min-height: auto;
  }

  .auth-screen-register {
    align-items: flex-start;
  }

  .auth-shell-login,
  .auth-shell-register {
    transform: none;
    border-radius: 1.6rem;
  }

  .auth-shell-login,
  .auth-panel-login,
  .auth-shell-register,
  .auth-panel-register {
    min-height: auto;
  }

  .auth-hero-panel,
  .auth-panel {
    justify-content: flex-start;
    transform: none;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell,
  .auth-toggle-indicator,
  .auth-form-stage,
  .auth-toggle-btn {
    animation: none !important;
    transition: none !important;
  }
}
