/* Modern authentication shell — presentation only. */
.auth-page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(217,35,53,.13), transparent 26rem),
    radial-gradient(circle at 94% 88%, rgba(24,34,48,.10), transparent 30rem),
    #eef1f5 !important;
}

.auth-page .pos-utility-dock,
.auth-page .pos-back-to-top { display: none !important; }

.auth-shell {
  position: relative;
  width: min(1120px, 100%);
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 30px;
  box-shadow: 0 35px 90px rgba(24,34,48,.18);
}

.auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px 58px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.16), transparent 18rem),
    linear-gradient(145deg, #191d27 0%, #2b1720 52%, #a11425 100%);
}

.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}

.auth-brand::before { width: 440px; height: 440px; right: -210px; bottom: -180px; }
.auth-brand::after { width: 290px; height: 290px; right: -130px; bottom: -105px; }

.auth-logo-card {
  width: fit-content;
  max-width: 230px;
  padding: 12px 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}

.auth-logo-card img { display: block; width: 100%; max-height: 68px; object-fit: contain; }

.auth-brand-copy { margin: auto 0; max-width: 470px; }
.auth-eyebrow { margin-bottom: 14px; color: #fda4af; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.auth-brand h1 {
  max-width: 440px;
  margin: 0 0 18px;
  color: #fff !important;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.auth-brand-lead { max-width: 440px; margin: 0; color: rgba(255,255,255,.70); font-size: 1.02rem; line-height: 1.7; }

.auth-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.auth-feature { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82); font-size: .86rem; font-weight: 620; }
.auth-feature-mark { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; color: #fff; background: rgba(217,35,53,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; }

.auth-brand-footer { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.52); font-size: .78rem; }
.auth-brand-footer::before { content: ""; width: 7px; height: 7px; background: #32d583; border-radius: 50%; box-shadow: 0 0 0 5px rgba(50,213,131,.11); }

.auth-form-panel { padding: 54px 58px; display: flex; align-items: center; background: rgba(255,255,255,.985); }
.auth-form-panel, .auth-form-inner, .auth-field, .auth-control { min-width: 0; }
.auth-form-inner { width: 100%; max-width: 390px; margin: 0 auto; }

.auth-mobile-logo { display: none; }
.auth-status { width: fit-content; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 7px 10px; color: #475467; background: #f8fafc; border: 1px solid #e4e7ec; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.auth-status-dot { width: 7px; height: 7px; background: #12b76a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(18,183,106,.10); }

.auth-form-panel h2 { margin: 0 0 8px; color: #182230; font-size: clamp(1.85rem, 3vw, 2.45rem); font-weight: 820; letter-spacing: -.045em; }
.auth-form-subtitle { margin: 0 0 30px; color: #667085; font-size: .94rem; }

.auth-alert { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 14px; color: #9f1239; background: #fff1f3; border: 1px solid #fecdd3; border-radius: 12px; font-size: .86rem; font-weight: 620; }
.auth-alert-icon { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; color: #fff; background: #e11d48; border-radius: 50%; font-size: .76rem; }

.auth-field { margin-bottom: 20px; }
.auth-field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.auth-field label { margin: 0; color: #344054; font-size: .84rem; font-weight: 730; }
.auth-field-hint { color: #98a2b3; font-size: .72rem; }

.auth-control { position: relative; }
.auth-control-icon { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; color: #98a2b3; transform: translateY(-50%); pointer-events: none; }

.auth-control .form-control {
  width: 100%;
  min-height: 52px !important;
  padding: 12px 48px 12px 46px !important;
  color: #182230 !important;
  background: #fff !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 13px !important;
  font-size: .94rem;
  font-weight: 560;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.auth-control .form-control:hover { border-color: #98a2b3 !important; }
.auth-control .form-control:focus { border-color: #d92335 !important; box-shadow: 0 0 0 4px rgba(217,35,53,.12) !important; }

.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  min-height: 36px !important;
  padding: 0 10px;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 8px !important;
  font-size: .75rem;
  font-weight: 760 !important;
  transform: translateY(-50%) !important;
}
.auth-password-toggle:hover { color: #b81728; background: #fff0f2; transform: translateY(-50%) !important; }

.auth-caps-warning { display: none; margin: 8px 0 0; color: #b54708; font-size: .76rem; font-weight: 650; }
.auth-caps-warning.is-visible { display: block; }

.auth-submit {
  width: 100%;
  min-height: 52px !important;
  margin-top: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff !important;
  background: linear-gradient(135deg, #e52c40 0%, #b81728 100%) !important;
  border: 0 !important;
  border-radius: 13px !important;
  box-shadow: 0 12px 24px rgba(217,35,53,.24) !important;
  font-size: .95rem;
  font-weight: 780 !important;
}
.auth-submit:hover { box-shadow: 0 16px 30px rgba(217,35,53,.31) !important; transform: translateY(-2px) !important; }
.auth-submit-arrow { font-size: 1.15rem; transition: transform 160ms ease; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(3px); }

.auth-security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: #98a2b3; font-size: .74rem; }
.auth-security-note svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .auth-page { padding: 16px; grid-template-columns: minmax(0, 1fr); }
  .auth-shell { width: 100%; max-width: 500px; min-width: 0; min-height: auto; grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .auth-brand { display: none; }
  .auth-form-panel { width: 100%; padding: 42px 34px; }
  .auth-mobile-logo { display: block; width: 190px; margin: 0 auto 28px; }
  .auth-mobile-logo img { display: block; width: 100%; }
  .auth-status { margin-bottom: 22px; }
}

@media (max-width: 480px) {
  .auth-page { padding: 0; background: #fff !important; }
  .auth-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-form-panel { padding: 32px 24px; }
  .auth-form-panel h2 { font-size: 1.9rem; }
  .auth-form-subtitle { margin-bottom: 24px; }
  .auth-field-hint { display: none; }
}
