/* Staff / admin sign-in — premium navy & gold. Lightweight: SVG + gradients only, no blur. */
@font-face { font-family: "Playfair"; font-weight: 600; font-display: swap; src: url("../fonts/playfair-600.woff2") format("woff2"); }

body.auth2-body { background: #FFFFFF; --serif: "Playfair", Georgia, "Times New Roman", serif; --ink: #0F1D30; }
.auth2 { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }

/* ---------------- Brand side ---------------- */
.auth2-side { position: relative; overflow: hidden; isolation: isolate; color: #D5DEEA; padding: 44px 56px; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 100% 100%, #22406A 0%, rgba(34, 64, 106, 0) 55%), linear-gradient(160deg, #1B3254 0%, #142744 45%, #0D1B2F 100%); }
.auth2-side .waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.auth2-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.auth2-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; color: #E6CC9A;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(214, 180, 120, .5); }
.auth2-brand b { font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.auth2-brand small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9FB0C8; margin-top: 2px; }
.auth2-hero { margin: auto 0; max-width: 470px; padding: 40px 0; }
.auth2-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #E2C38E; font-weight: 600; }
.auth2-eyebrow::before { content: ""; width: 26px; height: 1px; background: #C9A46A; }
.auth2-hero h2 { font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.16; letter-spacing: -.005em; margin: 16px 0 14px; }
.auth2-hero h2 em { font-style: normal; color: #E6CC9A; }
.auth2-hero p { color: #A9B8CC; font-size: 15px; line-height: 1.65; margin: 0 0 26px; }
.auth2-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth2-feats li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #DCE4EF; }
.auth2-feats .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #E6CC9A; font-size: 16px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(214, 180, 120, .28); }

/* Floating membership card illustration */
.auth2-card { position: absolute; right: -36px; bottom: 120px; width: 300px; aspect-ratio: 1.6 / 1; border-radius: 20px; padding: 18px 20px; z-index: -1;
  background: linear-gradient(140deg, #3A2C23 0%, #1F1813 60%, #15100C 100%); color: #F4EADB; transform: rotate(-8deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 235, 200, .08); display: flex; flex-direction: column; justify-content: space-between; }
.auth2-card .r1 { display: flex; justify-content: space-between; align-items: center; }
.auth2-card .lg { font-family: var(--serif); font-size: 15px; }
.auth2-card .chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #F0D7A6, #B98C4E); }
.auth2-card .lbl { font-size: 9.5px; letter-spacing: .2em; color: #CDB797; text-transform: uppercase; }
.auth2-card .pts { font-family: var(--serif); font-size: 30px; line-height: 1; }
.auth2-card .pts small { font-size: 13px; color: #E2CFAF; margin-left: 4px; }
.auth2-card .r3 { display: flex; justify-content: space-between; font-size: 11px; color: #D9C6A6; letter-spacing: .08em; }
.auth2-foot { font-size: 12px; color: #7F92AD; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Form side ---------------- */
.auth2-main { display: flex; align-items: center; justify-content: center; padding: 48px 28px; background: #FFFFFF; }
.auth2-panel { width: 100%; max-width: 410px; }
.auth2-panel .m-brand { display: none; }
.auth2-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; padding: 5px 10px; border-radius: 99px; background: #F6EFE3; color: #8A6635; margin-bottom: 16px; }
.auth2-panel h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: -.005em; color: var(--ink); margin: 0 0 6px; }
.auth2-panel .lead { color: #687386; font-size: 14.5px; margin-bottom: 28px; }
.auth2-panel .form-label { font-size: 13px; font-weight: 600; color: #26344A; margin-bottom: 7px; }
.auth2-field { position: relative; }
.auth2-field > .bi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #98A3B5; font-size: 17px; pointer-events: none; }
.auth2-field .form-control { height: 52px; padding-left: 44px; border-radius: 14px; border: 1.5px solid #E3E8EF; background: #FAFBFC; font-size: 15px; box-shadow: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.auth2-field .form-control:hover { border-color: #D3DAE4; }
.auth2-field .form-control:focus { background: #fff; border-color: #C9A46A; box-shadow: 0 0 0 4px rgba(201, 164, 106, .16); }
.auth2-field .form-control.has-toggle { padding-right: 52px; }
.auth2-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: transparent; border-radius: 10px; color: #7A8699; font-size: 18px; display: grid; place-items: center; }
.auth2-eye:hover { background: #F1F4F8; color: #26344A; }
.auth2-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.auth2-row a { font-size: 13px; font-weight: 500; color: #8A6635; }
.auth2-row a:hover { color: #6E4F25; }
.auth2-submit { width: 100%; height: 54px; border: 0; border-radius: 14px; margin-top: 10px; font-size: 15.5px; font-weight: 600; color: #fff; letter-spacing: .01em;
  background: linear-gradient(160deg, #213B61 0%, #172B46 55%, #0F1D30 100%); box-shadow: 0 10px 22px -8px rgba(23, 43, 70, .55); display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, box-shadow .15s; }
.auth2-submit:hover { box-shadow: 0 14px 26px -8px rgba(23, 43, 70, .6); }
.auth2-submit:active { transform: translateY(1px); }
.auth2-submit .bi { transition: transform .15s; }
.auth2-submit:hover .bi { transform: translateX(3px); }
.auth2-sep { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: #A3ADBC; font-size: 12px; }
.auth2-sep::before, .auth2-sep::after { content: ""; flex: 1; height: 1px; background: #EDF0F4; }
.auth2-alt { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.auth2-alt a { color: #4A5872; display: inline-flex; align-items: center; gap: 6px; }
.auth2-alt a:hover { color: #172B46; }
.auth2-secure { margin-top: 30px; text-align: center; font-size: 12px; color: #9AA5B5; display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth2-panel .flash { border-radius: 14px; margin-bottom: 18px; }
.auth2-panel .btn-primary, .auth2-panel .btn-light { height: 52px; border-radius: 14px; }
.auth2-panel .portal-link { border-radius: 16px; border-color: #E8ECF2; }
.auth2-panel .portal-link .ico { background: #F6EFE3; color: #8A6635; border-radius: 12px; }

/* Entrance (GPU-only) */
.auth2-rise { animation: a2rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.auth2-card { animation: a2float .8s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes a2rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes a2float { from { opacity: 0; transform: rotate(-8deg) translateY(24px); } to { opacity: 1; transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .auth2-rise, .auth2-card { animation: none; } }

@media (max-width: 1200px) { .auth2-card { width: 250px; right: -50px; bottom: 90px; } }

/* ---------------- Mobile: compact hero + sheet ---------------- */
@media (max-width: 900px) {
  .auth2 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth2-side { padding: calc(env(safe-area-inset-top) + 26px) 24px 64px; min-height: 0; }
  .auth2-hero { padding: 26px 0 0; margin: 0; }
  .auth2-hero h2 { font-size: 27px; margin: 12px 0 0; }
  .auth2-hero p, .auth2-feats, .auth2-card, .auth2-foot { display: none; }
  .auth2-main { align-items: flex-start; padding: 30px 22px calc(28px + env(safe-area-inset-bottom)); margin-top: -32px; border-radius: 28px 28px 0 0; position: relative; z-index: 2; box-shadow: 0 -10px 30px rgba(15, 29, 48, .12); }
  .auth2-panel h1 { font-size: 28px; }
  .auth2-panel .lead { margin-bottom: 22px; }
}
@media (max-width: 1100px) { .auth2-card { display: none; } }
