:root {
  --primary: #FF6A3D;
  --secondary: #111111;
  --soft: #FFF6EF;
  --text: #111111;
  --muted: #6B7280;
  --line: #ECE6DE;
  --white: #ffffff;
  --radius: 18px;
}

* { box-sizing: border-box; }

.admin-auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(242, 106, 27, 0.10), transparent 32%),
    radial-gradient(circle at bottom left, rgba(17, 17, 17, 0.04), transparent 30%),
    var(--soft);
}

.staff-login {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  padding:
    max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.staff-login-card {
  width: min(100%, 440px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
}

.staff-login-card.is-register {
  width: min(100%, 560px);
}

.staff-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.staff-login-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.staff-login-terms {
  align-items: flex-start;
  line-height: 1.45;
}

.staff-login-terms a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.staff-login-terms a:hover {
  text-decoration: underline;
}

.staff-login-logo {
  display: inline-flex;
  margin-bottom: 28px;
}

.staff-login-logo img {
  height: 46px;
  width: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.staff-login-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staff-login-card h1 {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.staff-login-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.staff-login-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  border: 1px solid #fecaca;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.staff-login-form {
  display: grid;
  gap: 16px;
}

.staff-login-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
}

.staff-login-input {
  position: relative;
}

.staff-login-input > i:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 14px;
  pointer-events: none;
}

.staff-login-input input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  padding: 0 46px 0 42px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.staff-login-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242, 106, 27, 0.14);
  background: var(--white);
}

.staff-login-input input.is-invalid {
  border-color: #fecaca;
}

.staff-login-input.is-locked input {
  background: #f3eee6;
  color: #0b1a2d;
  cursor: not-allowed;
  padding-right: 42px;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.staff-login-input.is-locked input:focus {
  border-color: var(--line);
  box-shadow: none;
  background: #f3eee6;
}

.staff-login-lock {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #f26a1b;
  font-size: 13px;
  pointer-events: none;
}

.staff-login-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.staff-login-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.staff-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.staff-login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.staff-login-submit {
  height: 52px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f26a1b, #d9570b);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(242, 106, 27, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.staff-login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  background: linear-gradient(135deg, #111111, #2a2a2a);
}

.staff-login-links {
  margin: 22px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.staff-login-links a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.staff-login-links a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .staff-login {
    align-items: flex-start;
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .staff-login-card,
  .staff-login-card.is-register {
    width: 100%;
    padding: 28px 20px 22px;
    border-radius: 16px;
  }

  .staff-login-card h1 {
    font-size: 26px;
  }

  .staff-login-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .staff-login-logo {
    margin-bottom: 18px;
  }

  .staff-login-sub {
    margin-bottom: 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .staff-login {
    padding-left: 12px;
    padding-right: 12px;
  }

  .staff-login-card,
  .staff-login-card.is-register {
    padding: 22px 16px 18px;
    box-shadow: 0 12px 32px rgba(11, 26, 45, 0.07);
  }

  .staff-login-card h1 {
    font-size: 24px;
  }

  .staff-login-links {
    flex-direction: column;
    gap: 6px;
  }

  .staff-login-links span {
    display: none;
  }
}
