/* Sign-in pages of BUA (login, verification code, new password): one shared look.
   Brand panel on the left (or the holiday photo set in HR), form card on the right. */
:root {
  --a-brand: #B22B3C; --a-brand-600: #9A2534; --a-brand-700: #7E1D2A; --a-brand-50: #FBEFF1;
  --a-ink: #1E2330; --a-ink-2: #454B5A; --a-muted: #6F7686; --a-line: #E4E6EC; --a-bg: #F6F5F7;
  --a-ok: #1F8A5B; --a-warn: #A56A12; --a-err: #B42318;
  --a-font: Mulish, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
html, body { height: 100%; }
body.auth { margin: 0; font-family: var(--a-font); color: var(--a-ink); background: var(--a-bg); -webkit-font-smoothing: antialiased; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* brand panel */
.auth-brand { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 2.6rem 3rem;
  background: radial-gradient(900px 420px at -10% 110%, rgba(255, 255, 255, .10), transparent 60%), linear-gradient(140deg, var(--a-brand-700) 0%, var(--a-brand) 55%, #C9475A 100%); }
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.auth-brand::before { width: 520px; height: 520px; right: -220px; top: -180px; }
.auth-brand::after { width: 360px; height: 360px; left: -160px; bottom: -160px; border-width: 44px; }
.auth-brand.has-photo { background: #2B0D12 center / cover no-repeat; }
.auth-brand.has-photo::before, .auth-brand.has-photo::after { display: none; }
.auth-brand.has-photo .auth-brand-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .55) 100%); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .auth-logo-chip { display: inline-flex; align-self: flex-start; background: #fff; border-radius: 14px; padding: .65rem .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.auth-brand .auth-logo { height: 44px; width: auto; display: block; }
.auth-brand h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .8rem; max-width: 30rem; }
.auth-brand p { font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .85); margin: 0; max-width: 30rem; }
.auth-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.auth-points li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.auth-points i { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.auth-brand small { color: rgba(255, 255, 255, .7); font-size: 12.5px; }

/* form side */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .auth-mobile-logo { display: none; height: 46px; margin-bottom: 1.5rem; }
.auth-card h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 .35rem; letter-spacing: -.01em; color: var(--a-ink); }
.auth-card .auth-sub { color: var(--a-muted); margin: 0 0 1.8rem; font-size: .98rem; }
.auth-field { margin-bottom: 1.1rem; }
.auth-field label { display: block; font-weight: 700; font-size: .86rem; color: var(--a-ink-2); margin-bottom: .4rem; }
.auth-input { position: relative; }
.auth-input > i.lead { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: #9AA0AE; font-size: .95rem; pointer-events: none; }
.auth-input input { width: 100%; height: 48px; border: 1px solid #D5D8E0; border-radius: 11px; padding: 0 2.9rem 0 2.6rem; font-size: 1rem; color: var(--a-ink); background: #fff; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.auth-input input:focus { outline: 0; border-color: var(--a-brand); box-shadow: 0 0 0 4px rgba(178, 43, 60, .12); }
.auth-input .auth-eye { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8B91A0; width: 38px; height: 38px; border-radius: 9px; cursor: pointer; }
.auth-input .auth-eye:hover, .auth-input .auth-eye:focus-visible { color: var(--a-brand); background: var(--a-brand-50); outline: 0; }
.auth-caps { display: none; margin-top: .4rem; font-size: .82rem; color: var(--a-warn); font-weight: 700; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: -.2rem 0 1.3rem; font-size: .9rem; }
.auth-row label { display: inline-flex; align-items: center; gap: .45rem; color: var(--a-ink-2); font-weight: 600; cursor: pointer; margin: 0; }
.auth-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--a-brand); }
.auth-btn { width: 100%; height: 50px; border: 0; border-radius: 11px; background: var(--a-brand); color: #fff !important; font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; box-shadow: 0 8px 20px rgba(178, 43, 60, .25); font-family: inherit; }
.auth-btn:hover { background: var(--a-brand-600); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(178, 43, 60, .25); }
.auth-btn:disabled { background: #C9A3A9; box-shadow: none; cursor: not-allowed; }
.auth-btn-light { width: auto; height: 38px; padding: 0 1rem; background: #fff; color: var(--a-ink-2) !important; border: 1px solid #D5D8E0; box-shadow: none; font-size: .9rem; }
.auth-btn-light:hover { background: #F4F4F7; }
.auth-btn-light:disabled { background: #F4F4F7; color: #A3A8B4 !important; }
.auth-alert { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem .95rem; border-radius: 11px; margin-bottom: 1.3rem; font-size: .92rem; line-height: 1.45; border: 1px solid transparent; }
.auth-alert i { margin-top: .15rem; }
.auth-alert.err { background: #FEF0EF; border-color: #F7CFCB; color: var(--a-err); }
.auth-alert.info { background: #EEF4FE; border-color: #CFE0FB; color: #1D4F9A; }
.auth-alert.ok { background: #EAF6F0; border-color: #C5E7D5; color: var(--a-ok); }
.auth-alert.warn { background: #FDF5E6; border-color: #F2DDB5; color: var(--a-warn); }
.auth-foot { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--a-line); font-size: .84rem; color: var(--a-muted); display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.auth-foot a { color: var(--a-brand); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* 6-digit code */
.auth-code { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: .3rem 0 1rem; }
.auth-code input { width: 50px !important; height: 58px !important; border: 1px solid #D5D8E0 !important; border-radius: 12px !important; text-align: center; font-size: 1.6rem !important; font-weight: 800 !important;
  color: var(--a-ink) !important; background: #fff; font-family: inherit !important; padding: 0 !important; transition: border-color .15s, box-shadow .15s; }
.auth-code input:focus { outline: 0; border-color: var(--a-brand) !important; box-shadow: 0 0 0 4px rgba(178, 43, 60, .12); }
.auth-code .splitter { color: #B5BAC6; font-size: 1.4rem; padding: 0 .1rem; }
.auth-resend { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--a-muted); }
.auth-resend .timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--a-ink-2); min-width: 2.6rem; }

/* new password */
.auth-meter { height: 6px; background: #ECEEF2; border-radius: 6px; overflow: hidden; margin-top: .55rem; }
.auth-meter > div { height: 100%; width: 0; border-radius: 6px; transition: width .25s, background-color .25s; }
.auth-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .9rem; margin-top: .8rem; font-size: .84rem; color: var(--a-muted); }
.auth-reqs .requirement { display: flex; align-items: center; gap: .45rem; }
.auth-reqs .requirement i { font-size: .75rem; }
.auth-reqs .requirement.valid { color: var(--a-ok); font-weight: 700; }
.auth-match { font-size: .85rem; margin-top: .45rem; font-weight: 700; }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card .auth-mobile-logo { display: block; }
  .auth-main { padding: 2rem 1.25rem; align-items: flex-start; }
}
@media (max-width: 400px) { .auth-code input { width: 42px !important; height: 52px !important; } .auth-reqs { grid-template-columns: 1fr; } }
