/* Entry portals share authentication markup, not role permissions. */
.warehouse-entry.cargo-entry,
.warehouse-entry.cargo-entry:visited {
  background: #07569b;
  border: 2px solid #c81e2b;
  box-shadow: 0 4px 0 #073763, 0 10px 20px rgb(7 86 155 / 16%);
}
.cargo-entry .warehouse-entry-icon,
.cargo-entry .warehouse-entry-arrow { color: #fff; }
.warehouse-entry.cargo-entry:hover {
  background: linear-gradient(135deg, #07569b 0 80%, #c81e2b 80%);
  border-color: #073763;
  box-shadow: 0 4px 0 #073763, 0 12px 22px rgb(7 86 155 / 20%);
}
.warehouse-entry.cargo-entry:active { transform: translateY(3px); box-shadow: 0 1px 0 #073763; }
.cargo-login { --brand: #07569b; --brand-strong: #073763; background: #eef5fb; }
.admin-recovery-link { display: block; margin-top: 16px; color: #07569b; text-align: center; padding: 8px; font-weight: 700; }
.admin-recovery-link:focus-visible { outline: 3px solid #c81e2b; outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .warehouse-entry.cargo-entry { animation: none; transition: none; } }
.login-surface .login-card,
.login-surface .form-block,
.login-surface .field-group {
  min-width: 0;
}

.login-surface h1,
.login-surface h2,
.login-surface p,
.login-surface label,
.login-surface .card-footer,
.warehouse-entry-label {
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.login-surface .submit-btn {
  min-height: 52px;
  height: auto;
  padding: 12px 16px;
  font-family: inherit;
  line-height: 1.6;
}

.login-surface .error-textline {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
  line-height: 1.8;
}

.warehouse-entry,
.warehouse-entry:visited {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  min-height: 80px;
  border: 1px solid #0f766e;
  border-radius: 18px;
  background: linear-gradient(120deg, #064e3b, #0f6155);
  color: #fff;
  font-weight: 700;
  line-height: 1.65;
  text-decoration: none;
  box-shadow: 0 10px 24px rgb(6 78 59 / 15%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: warehouse-enter 320ms ease-out both;
}

.warehouse-entry-label {
  flex: 1;
  min-width: 0;
}

.warehouse-entry-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(253 230 138 / 35%);
  border-radius: 14px;
  background: rgb(255 255 255 / 8%);
  color: #fde68a;
}

.warehouse-entry-icon svg {
  width: 32px;
  height: 32px;
}

.warehouse-entry-arrow {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #fde68a;
}

.warehouse-entry:hover {
  color: #fff;
  border-color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(6 78 59 / 23%);
}

.warehouse-entry:focus-visible,
.login-surface .submit-btn:focus-visible,
.login-surface .password-toggle:focus-visible {
  outline: 3px solid #b45309;
  outline-offset: 4px;
}

.warehouse-entry:active {
  transform: translateY(0);
}

.warehouse-login {
  --text: #153e35;
  --muted: #526d62;
  --line: #adc9bf;
  --brand: #0f766e;
  --brand-strong: #065f46;
  --shadow-lg: 0 26px 64px rgb(6 78 59 / 16%);
  --shadow-md: 0 12px 28px rgb(6 95 70 / 17%);
  background:
    radial-gradient(ellipse at 15% 15%, rgb(45 212 191 / 15%), transparent 48%),
    radial-gradient(ellipse at 85% 90%, rgb(251 191 36 / 12%), transparent 45%),
    linear-gradient(145deg, #edf8f2, #e0eee6);
}

.warehouse-login .page-accent {
  background: linear-gradient(120deg, rgb(255 255 255 / 35%), transparent 58%);
}

.warehouse-login .login-card {
  border-color: #bbd4c7;
  border-top: 5px solid #0f766e;
  background: linear-gradient(180deg, #f7fcf9, #fff 40%);
}

.warehouse-login .brand-logo {
  box-shadow: 0 12px 30px rgb(6 95 70 / 16%);
}

.warehouse-login .brand-head {
  margin-bottom: 26px;
}

.warehouse-login .warehouse-identity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 14px;
  border: 1px solid #b9d8c9;
  border-radius: 14px;
  background: #e8f5ee;
  color: #065f46;
  font-size: 0.94rem;
}

.warehouse-identity svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.warehouse-identity span {
  min-width: 0;
}

.warehouse-login .field-input::placeholder {
  color: #60786d;
}

.warehouse-login .field-input:focus {
  box-shadow: 0 0 0 4px rgb(15 118 110 / 15%);
}

.warehouse-login .password-toggle:hover {
  background: #e8f5ee;
}

.warehouse-login .card-footer {
  border-color: #d6e5dc;
}

@keyframes warehouse-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 360px) {
  .warehouse-entry {
    gap: 10px;
    padding: 12px;
  }
  .warehouse-entry-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .warehouse-entry,
  .warehouse-entry:hover,
  .warehouse-entry:active {
    animation: none;
    transition: none;
    transform: none;
  }
}
