:root {
  --staff-auth-primary: #6a320f;
  --staff-auth-primary-dark: #421b07;
  --staff-auth-accent: #d48a3a;
  --staff-auth-bg: #f7f3ee;
  --staff-auth-border: #eadfd4;
  --staff-auth-text: #26170f;
  --staff-auth-muted: #766c65;
}

body:has(.staff-auth-page) {
  background: var(--staff-auth-bg);
  color: var(--staff-auth-text);
  margin: 0;
}

.staff-auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.staff-auth-header,
.staff-auth-footer {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding-inline: clamp(20px, 5vw, 76px);
  position: relative;
  z-index: 10;
}

.staff-auth-header {
  border-bottom: 1px solid var(--staff-auth-border);
  min-height: 72px;
}

.staff-auth-brand {
  align-items: center;
  color: var(--staff-auth-text);
  display: inline-flex;
  gap: 11px;
  text-decoration: none !important;
}

.staff-auth-brand:hover { color: var(--staff-auth-primary); }

.staff-auth-brand-icon {
  align-items: center;
  background: var(--staff-auth-primary);
  border-radius: 10px;
  color: #f6d7b1;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transform: rotate(-8deg);
  width: 40px;
}

.staff-auth-brand strong,
.staff-auth-brand small { display: block; }
.staff-auth-brand strong { font-size: 15px; line-height: 1.35; }
.staff-auth-brand small { color: var(--staff-auth-muted); font-size: 11px; margin-top: 1px; }

.staff-auth-header-actions { align-items: center; display: flex; gap: 18px; }
.staff-auth-secure { color: var(--staff-auth-muted); font-size: 12px; }
.staff-auth-secure i { color: #438067; margin-inline-end: 5px; }

.staff-auth-language { position: relative; }
.staff-auth-language summary {
  align-items: center;
  border: 1px solid var(--staff-auth-border);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  direction: ltr;
  gap: 6px;
  list-style: none;
  min-height: 36px;
  padding: 6px 10px;
  user-select: none;
}
.staff-auth-flag {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 18px;
  height: 18px;
  justify-content: center;
  overflow: hidden;
  width: 18px;
}
.staff-auth-language summary::-webkit-details-marker { display: none; }
.staff-auth-language[open] summary { border-color: #d6c1ad; box-shadow: 0 3px 12px rgba(66, 27, 7, .07); }
.staff-auth-language-menu {
  background: #fff;
  border: 1px solid var(--staff-auth-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(44, 25, 13, .12);
  inset-inline-end: 0;
  direction: ltr;
  min-width: 168px;
  padding: 4px 0;
  position: absolute;
  top: calc(100% + 8px);
}
.staff-auth-language-menu a {
  align-items: center;
  border-radius: 7px;
  color: var(--staff-auth-text);
  display: flex;
  font-size: 12.5px;
  gap: 8px;
  padding: 7px 11px;
  text-decoration: none !important;
}
.staff-auth-language-menu a:hover { background: #f5f7f9; }
.staff-auth-language-menu a.is-active { background: #e6f1fb; color: #185fa5; font-weight: 500; }
.staff-auth-language-menu a .fa-check { margin-inline-start: auto; }

.staff-auth-main {
  align-items: center;
  background: radial-gradient(circle at 15% 30%, #8a4618 0, var(--staff-auth-primary) 34%, var(--staff-auth-primary-dark) 100%);
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 620px;
  overflow: hidden;
  padding: clamp(36px, 6vh, 72px) 20px;
  position: relative;
}

.staff-auth-decoration {
  border: 1px solid rgba(255, 255, 255, .09);
  height: 150px;
  position: absolute;
  transform: rotate(45deg);
  width: 150px;
}
.staff-auth-decoration-one { inset: -55px auto auto -35px; }
.staff-auth-decoration-two { inset: auto -45px -60px auto; }

.staff-auth-shell {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  max-width: 1080px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.staff-auth-intro {
  align-self: center;
  color: #fff;
  max-width: 520px;
  padding: 44px clamp(18px, 5vw, 68px);
  text-align: start;
}
.staff-auth-eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  padding: 7px 11px;
}
.staff-auth-intro h1 { color: #fff; font-size: clamp(30px, 3vw, 43px); font-weight: 800; line-height: 1.25; margin: 20px 0 14px; }
.staff-auth-intro > p { color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.8; margin: 0; max-width: 470px; }
.staff-auth-intro ul { display: grid; gap: 12px; list-style: none; margin: 26px 0 0; padding: 0; }
.staff-auth-intro li { align-items: center; display: flex; font-size: 13px; gap: 10px; }
.staff-auth-intro li i { align-items: center; background: rgba(255, 255, 255, .12); border-radius: 50%; display: inline-flex; height: 24px; justify-content: center; width: 24px; }

.staff-auth-form-panel {
  align-items: center;
  display: flex;
}
.staff-auth-form-panel > .d-flex { width: 100%; }
.staff-auth-form-panel .auth-login-card {
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(24, 9, 1, .28);
  padding: 34px 36px 30px;
}
.staff-auth-form-panel .auth-logo-icon { height: 56px; margin-bottom: 18px; width: 56px; }
.staff-auth-form-panel .auth-main h2 { color: var(--staff-auth-text); font-size: 23px; font-weight: 800; margin: 0 0 7px; }
.staff-auth-form-panel .auth-sub { line-height: 1.6; margin-bottom: 24px; }
.staff-auth-form-panel .auth-group { margin-bottom: 17px; }
.staff-auth-form-panel .auth-group label { color: #574b43; font-weight: 600; }
.staff-auth-form-panel .auth-input-wrap .form-control { height: 50px; }
.staff-auth-form-panel .auth-input-wrap .form-control.has-action {
  direction: ltr;
  padding-left: 60px;
  padding-right: 48px;
  text-align: left;
}
.staff-auth-form-panel input[type="password"]::-ms-reveal,
.staff-auth-form-panel input[type="password"]::-ms-clear { display: none; }
.staff-auth-form-panel .auth-input-wrap .form-control.is-invalid { border-color: #cf4c4c; box-shadow: 0 0 0 3px rgba(207, 76, 76, .08); }
.staff-auth-form-panel .auth-eye {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8b8179;
  display: inline-flex;
  font-size: 16px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
  left: 9px;
}
.staff-auth-form-panel .auth-eye:focus { border-radius: 5px; outline: 2px solid rgba(201, 138, 62, .35); }
.staff-auth-form-panel .auth-form-alert {
  background: #fff1f1;
  border: 1px solid #f1caca;
  border-radius: 8px;
  color: #a32e2e;
  display: none;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 10px 12px;
  text-align: start;
}
.staff-auth-form-panel .auth-err-msg { min-height: 16px; text-align: start; }
.staff-auth-form-panel .auth-btn { align-items: center; display: flex; justify-content: center; min-height: 50px; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.staff-auth-form-panel .auth-btn:hover { box-shadow: 0 8px 20px rgba(92, 46, 14, .2); transform: translateY(-1px); }
.staff-auth-form-panel .auth-btn:disabled { cursor: wait; opacity: .75; transform: none; }
.staff-auth-form-panel .icon-loading { display: none; margin-inline-start: 8px; }
.staff-auth-recovery-card { width: 100%; }
.staff-auth-success {
  background: #edf8f2;
  border: 1px solid #bfe1ce;
  border-radius: 8px;
  color: #276346;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 17px;
  padding: 11px 12px;
  text-align: start;
}
.staff-auth-field-hint {
  color: var(--staff-auth-muted);
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
  text-align: start;
}

.staff-auth-footer {
  border-top: 1px solid var(--staff-auth-border);
  color: var(--staff-auth-muted);
  font-size: 11px;
  min-height: 54px;
}
.staff-auth-footer p { margin: 0; }
.staff-auth-footer a { color: #23834f; font-size: 12px; text-decoration: underline; }
.staff-auth-footer a:hover { color: #17683d; }
.staff-auth-footer i { color: #438067; margin-inline-end: 5px; }

.staff-auth-page[dir="rtl"] .staff-auth-brand-icon { transform: rotate(8deg); }

@media (max-width: 900px) {
  .staff-auth-shell { grid-template-columns: 1fr; max-width: 470px; }
  .staff-auth-intro { padding: 0 12px 28px; text-align: center; }
  .staff-auth-intro h1 { font-size: 29px; }
  .staff-auth-intro > p { margin-inline: auto; }
  .staff-auth-intro ul { display: none; }
}

@media (max-width: 600px) {
  .staff-auth-header { min-height: 64px; padding-inline: 14px; }
  .staff-auth-brand small, .staff-auth-secure { display: none; }
  .staff-auth-header-actions { gap: 8px; }
  .staff-auth-main { min-height: auto; padding: 30px 14px; }
  .staff-auth-intro { padding-bottom: 22px; }
  .staff-auth-intro h1 { font-size: 25px; margin-top: 15px; }
  .staff-auth-intro > p { font-size: 13px; }
  .staff-auth-form-panel .auth-login-card { border-radius: 14px; padding: 27px 20px 24px; }
  .staff-auth-footer { align-items: flex-start; flex-direction: column; gap: 3px; justify-content: center; padding-block: 10px; }
}
