/* ==========================================================================
   Sign-in pages (admin, staff, delivery, change password) — Pallikkal Pharmacy design
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
:root { --navy: #02224d; --navy2: #0b3a73; --ink: #0d1b4b; --green: #12a01b; --green2: #0c7d15; --lime: #2ee52f; --line: #d3dbe6; --muted: #5b6677; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #eaf1f8; min-height: 100vh; overflow-x: hidden; }
button, input { font: inherit; }

/* background */
.au-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(100deg, #0a2a56 0%, #0d3768 38%, #1d5b97 52%, #cfe0f1 64%, #edf4fb 76%, #f5f9fd 100%); }
.au-shelves { position: absolute; inset: 0 30% 0 0; background: url('../images/brand/auth-shelves.svg') center / cover no-repeat; opacity: .55; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%); }
.au-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 30, 70, .78) 0, rgba(2, 30, 70, .5) 34%, rgba(2, 30, 70, 0) 60%); }
.au-swoosh { position: absolute; width: 100%; height: 100%; inset: 0; }
.au-art { position: absolute; left: 14%; bottom: 3%; width: 440px; max-width: 34vw; }
.au-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(240, 246, 251, .9) 55%, #f3f7fb 100%); }

/* layout */
.au { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 40px 6vw 40px 5vw; }
.au-hero { color: #fff; align-self: start; padding-top: 2vh; max-width: 620px; }
.au-logo { width: 300px; max-width: 70%; height: auto; display: block; margin-bottom: 44px; }
.au-hero h1 { margin: 0 0 14px; font: 800 clamp(1.55rem, 2.25vw, 2.3rem)/1.15 Montserrat, Inter, sans-serif; letter-spacing: -.01em; }
.au-hero > p { margin: 0 0 30px; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.45; color: #e3edf9; max-width: 560px; }
.au-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.au-feats li { display: flex; align-items: center; gap: 22px; font-size: 1.08rem; }
.au-fic { display: grid; place-items: center; width: 64px; height: 50px; border: 2.5px solid #23c52d; border-radius: 12px; background: rgba(6, 60, 40, .55); color: #fff; flex: none; }
.au-fic svg { width: 28px; height: 28px; }
.au-feats .au-short { display: none; }

/* card */
.au-card { justify-self: center; width: min(100%, 620px); background: rgba(250, 252, 255, .97); border-radius: 34px; padding: 40px 48px 34px; box-shadow: 0 30px 80px rgba(8, 30, 70, .22), 0 2px 6px rgba(8, 30, 70, .06); }
.au-card-logo { display: block; width: 300px; max-width: 80%; height: auto; margin: 0 auto 14px; }
.au-title { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; font: 800 clamp(1.6rem, 2.4vw, 2.3rem)/1.15 Montserrat, Inter, sans-serif; color: var(--ink); text-align: center; }
.au-title svg { width: 64px; height: 46px; color: var(--green); flex: none; }
.au-title .au-lock { width: 40px; height: 46px; }
.au-sub { margin: 10px 0 26px; text-align: center; color: var(--ink); font-size: 1.05rem; }
.au-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 18px; }
.au-field > label { font-weight: 800; font-size: .98rem; color: var(--ink); }
.au-field > label i { font-style: normal; color: #e11d2a; margin-left: 4px; }
.au-input { position: relative; display: flex; align-items: center; height: 54px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.au-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18, 160, 27, .14); }
.au-input.bad { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.au-input > svg { width: 24px; height: 24px; margin: 0 14px 0 26px; color: var(--ink); flex: none; }
.au-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1.02rem; padding: 0 12px 0 0; }
.au-input input::placeholder { color: #6b7384; }
.au-eye { display: grid; place-items: center; width: 52px; height: 100%; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 0 12px 12px 0; flex: none; }
.au-eye svg { width: 26px; height: 26px; }
.au-eye:focus-visible { outline: 3px solid rgba(18, 160, 27, .4); outline-offset: -4px; }
.au-caps { color: #b45309; font-size: .82rem; font-weight: 600; }
.au-caps[hidden] { display: none; }
.au-row-end { display: flex; justify-content: flex-end; margin: -4px 0 22px; }
.au-link { border: 0; background: none; padding: 0; color: #0c8a17; font-weight: 600; font-size: 1.02rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.au-link:hover { color: var(--green2); }
.au-msg { min-height: 0; margin: 0 0 14px; padding: 0; border-radius: 10px; font-size: .92rem; line-height: 1.4; }
.au-msg:empty { display: none; }
.au-msg.info { padding: 10px 14px; background: #eef6ff; color: #0b3a73; }
.au-msg.ok { padding: 10px 14px; background: #e8f8ea; color: #0f7a16; }
.au-msg.error { padding: 10px 14px; background: #fdecec; color: #b42318; }
.au-btn { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 62px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #13a01d, #0b7a14); color: #fff; font: 800 1.35rem Montserrat, Inter, sans-serif; cursor: pointer; box-shadow: 0 10px 24px rgba(18, 160, 27, .28); transition: filter .15s, transform .15s; }
.au-btn:hover { filter: brightness(1.05); } .au-btn:active { transform: translateY(1px); }
.au-btn:disabled { opacity: .7; cursor: wait; }
.au-btn svg { width: 30px; height: 30px; }
.au-spin { width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: au-spin .8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 26px; color: var(--ink); font-size: 1.05rem; }
.au-foot::before, .au-foot::after { content: ''; height: 1px; background: #b9c4d4; }
.au-foot span { display: inline-flex; align-items: center; gap: 10px; }
.au-foot svg { width: 30px; height: 30px; color: var(--green); }
.au-alt { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--muted); }
.au-alt a { color: #0b3a73; font-weight: 600; text-decoration: none; margin: 0 6px; }
.au-alt a:hover { text-decoration: underline; }
.au-back { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 18px; border: 0; background: none; color: var(--ink); font-size: 1.1rem; cursor: pointer; text-decoration: none; }
.au-back svg { width: 24px; height: 24px; }
.au-back:hover { color: var(--green2); }

/* password requirements */
.au-req { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 14px; margin: 4px 0 20px; padding: 14px 20px; border-radius: 14px; background: #e6f6e8; color: var(--ink); }
.au-req > svg { width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
.au-req b { display: block; font-weight: 800; margin-bottom: 4px; }
.au-req ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: .92rem; }
.au-req li { display: flex; align-items: center; gap: 8px; }
.au-req li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; margin: 0 4px; }
.au-req li.ok { color: #0f7a16; } .au-req li.ok::before { content: '✓'; width: auto; height: auto; background: none; font-weight: 800; margin: 0; }
.au-req li.no { color: #b42318; }
.au-meter { height: 6px; border-radius: 999px; background: #e3e8ef; overflow: hidden; margin-top: -10px; margin-bottom: 18px; }
.au-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .2s, background .2s; }

/* dialog */
.au-dlg { width: min(92vw, 460px); border: 0; border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px rgba(8, 30, 70, .35); color: var(--ink); }
.au-dlg::backdrop { background: rgba(2, 20, 50, .55); }
.au-dlg h3 { margin: 0 0 8px; font: 800 1.3rem Montserrat, Inter, sans-serif; }
.au-dlg p { margin: 0 0 14px; color: #34405a; line-height: 1.5; }
.au-dlg ol { margin: 0 0 16px; padding-left: 20px; color: #34405a; line-height: 1.55; }
.au-dlg .au-btn { height: 52px; font-size: 1.05rem; }
.au-dlg .au-ghost { display: block; width: 100%; margin-top: 10px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }

/* ---------------- responsive ---------------- */
@media (max-width: 1280px) {
  .au { gap: 24px; padding: 32px 3vw; }
  .au-card { padding: 34px 34px 28px; }
  .au-feats li { font-size: 1rem; }
}
@media (max-width: 980px) {
  body { position: relative; }
  .au-bg { position: absolute; }
  .au-bg { background: linear-gradient(180deg, #0a2a56 0, #0d3768 30%, #2a6aa6 46%, #cfe0f1 62%, #eaf2fa 100%); }
  .au-shelves { inset: 0 0 40% 0; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%); }
  .au-bg::before { background: linear-gradient(180deg, rgba(2, 30, 70, .7) 0, rgba(2, 30, 70, .45) 30%, rgba(2, 30, 70, 0) 55%); }
  .au-art { left: 50%; transform: translateX(-45%); width: 360px; max-width: 78vw; bottom: 0; }
  .au { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 16px 210px; align-content: start; }
  .au-hero { text-align: center; justify-self: center; padding-top: 0; }
  .au-logo { margin: 0 auto 14px; width: 240px; }
  .au-hero h1 { font-size: 1.55rem; margin-bottom: 8px; }
  .au-hero > p { font-size: .98rem; margin: 0 auto 16px; }
  .au-feats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .au-feats li { flex-direction: column; gap: 6px; font-size: .74rem; line-height: 1.2; text-align: center; }
  .au-fic { width: 52px; height: 46px; }
  .au-fic svg { width: 24px; height: 24px; }
  .au-feats .au-long { display: none; } .au-feats .au-short { display: inline; }
  .au-card { border-radius: 26px; padding: 22px 20px 20px; width: min(100%, 560px); }
  .au-card-logo { width: 220px; margin-bottom: 8px; }
  .au-title { font-size: 1.6rem; gap: 10px; }
  .au-title svg { width: 52px; height: 36px; } .au-title .au-lock { width: 32px; height: 38px; }
  .au-sub { margin: 6px 0 18px; font-size: .95rem; }
  .au-field { margin-bottom: 14px; gap: 6px; }
  .au-field > label { font-size: .9rem; }
  .au-input { height: 48px; }
  .au-input > svg { margin: 0 12px 0 16px; width: 22px; height: 22px; }
  .au-input input { font-size: .98rem; }
  .au-row-end { margin: -2px 0 18px; }
  .au-link { font-size: .95rem; }
  .au-btn { height: 54px; font-size: 1.2rem; }
  .au-foot { margin-top: 18px; font-size: .95rem; gap: 12px; }
  .au-req { padding: 12px 14px; gap: 2px 10px; }
  .au-req ul { font-size: .84rem; }
}
@media (max-width: 420px) {
  .au { padding: 16px 12px 180px; }
  .au-logo { width: 210px; }
  .au-hero h1 { font-size: 1.32rem; }
  .au-hero > p { font-size: .88rem; }
  .au-feats li { font-size: .66rem; }
  .au-fic { width: 46px; height: 40px; border-radius: 10px; border-width: 2px; } .au-fic svg { width: 21px; height: 21px; }
  .au-card { padding: 18px 16px 16px; }
  .au-title { font-size: 1.42rem; }
  .au-sub { font-size: .86rem; }
  .au-foot { font-size: .86rem; } .au-foot svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .au-spin { animation-duration: 2s; } }
