:root {
  --auth-ink: #172033;
  --auth-muted: #64748b;
  --auth-line: rgba(15, 23, 42, 0.1);
  --auth-blue: #2457d6;
  --auth-blue-dark: #153f9f;
  --auth-surface: rgba(255, 255, 255, 0.88);
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  font-family: "Century Gothic", "CenturyGothic", "Avenir Next", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(36, 87, 214, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(20, 184, 166, 0.13), transparent 24rem),
    linear-gradient(135deg, #eef4ff 0%, #f8fafc 46%, #edf2f7 100%);
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0.42;
}

.auth-page::before {
  width: 22rem;
  height: 22rem;
  left: -8rem;
  bottom: -9rem;
  background: rgba(36, 87, 214, 0.15);
}

.auth-page::after {
  width: 16rem;
  height: 16rem;
  right: -5rem;
  top: 30%;
  background: rgba(15, 23, 42, 0.08);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 27rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(1100px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 0;
}

.auth-panel {
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.auth-hero-logo {
  display: block;
  max-width: 118px;
  max-height: 64px;
  margin-bottom: 1.25rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.13));
}

.auth-brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  height: 2.2rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(36, 87, 214, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--auth-blue-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.auth-panel h1 {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.auth-panel p {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--auth-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-panel-line {
  width: min(18rem, 80%);
  height: 1px;
  margin: 2rem 0 1rem;
  background: linear-gradient(90deg, rgba(36, 87, 214, 0.45), transparent);
}

.auth-panel span {
  color: #334155;
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-card {
  width: 100%;
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: var(--auth-surface);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(20px);
}

.auth-card-header {
  margin-bottom: 1.4rem;
}

.auth-eyebrow {
  margin: 0 0 0.2rem;
  color: var(--auth-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-card-header p:not(.auth-eyebrow) {
  margin: 0.25rem 0 0;
  color: var(--auth-muted);
  font-size: 0.92rem;
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 16px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-field .form-control {
  min-height: 3.15rem;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--auth-ink);
  font-size: 0.98rem;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.auth-field .form-control:focus {
  border-color: rgba(36, 87, 214, 0.55);
  background: #fff;
  box-shadow: 0 0 0 0.22rem rgba(36, 87, 214, 0.13);
}

.auth-submit {
  width: 100%;
  min-height: 3.15rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--auth-blue) 0%, var(--auth-blue-dark) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 34px rgba(36, 87, 214, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(36, 87, 214, 0.34);
}

.auth-footer {
  margin-top: 1.35rem;
  color: var(--auth-muted);
  font-size: 0.78rem;
  text-align: center;
}

.warehouse-shell {
  grid-template-columns: minmax(0, 0.78fr) minmax(24rem, 31rem);
}

.warehouse-card {
  max-width: 31rem;
}

.warehouse-form {
  gap: 1.1rem;
}

.warehouse-options {
  display: grid;
  gap: 0.72rem;
  max-height: min(42vh, 24rem);
  overflow: auto;
  padding-right: 0.15rem;
}

.warehouse-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.warehouse-option:hover {
  border-color: rgba(36, 87, 214, 0.34);
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.warehouse-option input[type="radio"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  accent-color: var(--auth-blue);
}

.warehouse-option-body {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.warehouse-option-title {
  color: var(--auth-ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.warehouse-option-meta {
  color: var(--auth-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.warehouse-option-active {
  border-color: rgba(36, 87, 214, 0.44);
  background: rgba(36, 87, 214, 0.08);
}

.warehouse-actions {
  margin-top: 1rem;
  text-align: center;
}

.warehouse-actions a {
  color: var(--auth-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.warehouse-actions a:hover,
.warehouse-actions a:focus-visible {
  color: var(--auth-blue-dark);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    width: min(100% - 1.25rem, 30rem);
    padding: 1.2rem 0;
  }

  .auth-panel {
    padding: 0.35rem 0.35rem 0;
    text-align: center;
  }

  .auth-panel p,
  .auth-panel-line,
  .auth-panel span {
    display: none;
  }

  .auth-brandmark {
    margin-bottom: 0.75rem;
  }

  .auth-hero-logo {
    margin: 0 auto 0.75rem;
    max-width: 96px;
    max-height: 52px;
  }

  .auth-panel h1 {
    font-size: 1.6rem;
    letter-spacing: -0.04em;
  }

  .auth-card {
    border-radius: 24px;
  }

  .warehouse-shell {
    grid-template-columns: 1fr;
  }

  .warehouse-options {
    max-height: 48vh;
  }
}
