/*
 * BUA Cement sign-in pages (login, verification code, new password): "Heritage" look.
 * Corporate top bar, the form on the left, the company story on the right (deep BUA red with a
 * timeline). Serif titles, square edges, concrete-grey page. Deliberately unlike the Mangal pages.
 */
:root {
  --b-red: #C8102E;
  --b-red-deep: #8E0B20;
  --b-red-ink: #5C0715;
  --b-gold: #D4A853;
  --b-ink: #16181D;
  --b-ink-2: #3F434C;
  --b-muted: #747985;
  --b-line: #DADCE1;
  --b-page: #EEEEEC;
  --b-ok: #1B7A4B;
  --b-warn: #A56A12;
  --b-err: #B3121F;
  --b-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --b-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.bua-auth { margin: 0; font-family: var(--b-sans); color: var(--b-ink); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh;
  background-color: var(--b-page);
  background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }

/* top bar */
.ba-top { background: #fff; border-bottom: 3px solid var(--b-red); display: flex; align-items: center; gap: 14px; padding: 12px 28px; }
.ba-top img { height: 42px; width: auto; display: block; }
.ba-top .co { display: flex; flex-direction: column; line-height: 1.15; }
.ba-top .co b { font-family: var(--b-serif); font-size: 1.15rem; letter-spacing: .01em; }
.ba-top .co span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--b-muted); font-weight: 700; }
.ba-top .tag { margin-left: auto; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-red-deep); border: 1.5px solid var(--b-red); padding: 5px 10px; }

/* layout */
.ba-wrap { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 0; align-items: stretch; }

/* form panel */
.ba-panel { background: #fff; padding: 38px 36px 30px; border-top: 6px solid var(--b-red); box-shadow: 0 30px 60px -30px rgba(22, 24, 29, .35); position: relative; z-index: 1; }
.ba-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--b-red); margin-bottom: 8px; }
.ba-panel h1 { font-family: var(--b-serif); font-weight: 700; font-size: 2.05rem; line-height: 1.12; margin: 0 0 8px; }
.ba-panel .ba-sub { color: var(--b-muted); margin: 0 0 26px; font-size: .95rem; line-height: 1.5; }
.ba-field { margin-bottom: 18px; }
.ba-field label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--b-ink-2); margin-bottom: 7px; }
.ba-input { position: relative; }
.ba-input > i.lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9A9EA8; font-size: .95rem; pointer-events: none; }
.ba-input input { width: 100%; height: 50px; border: 1.5px solid var(--b-line); border-radius: 2px; padding: 0 48px 0 42px; font-size: 1rem; font-family: inherit; color: var(--b-ink); background: #FAFAF9; transition: border-color .15s, box-shadow .15s, background .15s; }
.ba-input input:focus { outline: 0; border-color: var(--b-ink); background: #fff; box-shadow: inset 4px 0 0 var(--b-red); }
.ba-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #80848E; width: 42px; height: 42px; cursor: pointer; }
.ba-eye:hover, .ba-eye:focus-visible { color: var(--b-red); outline: 0; }
.ba-caps { display: none; margin-top: 6px; font-size: .8rem; color: var(--b-warn); font-weight: 700; }
.ba-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 22px; font-size: .9rem; }
.ba-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--b-ink-2); font-weight: 600; cursor: pointer; margin: 0; }
.ba-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--b-red); }
.ba-btn { width: 100%; height: 52px; border: 0; border-radius: 2px; background: var(--b-red); color: #fff !important; font-family: inherit; font-weight: 800; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.ba-btn:hover { background: var(--b-red-deep); }
.ba-btn:active { transform: translateY(1px); }
.ba-btn:focus-visible { outline: 3px solid rgba(200, 16, 46, .35); outline-offset: 2px; }
.ba-btn:disabled { background: #C9A2A9; cursor: not-allowed; }
.ba-btn.light { width: auto; height: 40px; padding: 0 16px; background: #fff; color: var(--b-ink-2) !important; border: 1.5px solid var(--b-line); letter-spacing: .06em; font-size: .78rem; }
.ba-btn.light:hover { border-color: var(--b-ink); background: #fff; }
.ba-btn.light:disabled { color: #A3A7B0 !important; background: #F4F4F3; }
.ba-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 20px; font-size: .9rem; line-height: 1.45; border-left: 4px solid; background: #F6F6F5; }
.ba-alert.err { border-color: var(--b-err); color: var(--b-err); background: #FCEEF0; }
.ba-alert.info { border-color: #3E5C8A; color: #24406B; background: #EEF2F8; }
.ba-alert.ok { border-color: var(--b-ok); color: var(--b-ok); background: #EAF5EE; }
.ba-alert.warn { border-color: var(--b-warn); color: #7A4E0C; background: #FBF3E3; }
.ba-alert i { margin-top: 2px; }
.ba-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid #ECECEA; font-size: .82rem; color: var(--b-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ba-foot a { color: var(--b-red); font-weight: 700; text-decoration: none; }
.ba-foot a:hover { text-decoration: underline; }
.ba-secure { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: .78rem; color: var(--b-muted); }
.ba-secure i { color: var(--b-ok); }

/* story panel */
.ba-story { position: relative; overflow: hidden; color: #fff; padding: 44px 46px; display: flex; flex-direction: column; gap: 26px;
  background: linear-gradient(160deg, var(--b-red) 0%, var(--b-red-deep) 55%, var(--b-red-ink) 100%); }
.ba-story::before { content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); }
.ba-story.has-photo { background: #2A0710 center / cover no-repeat; }
.ba-story.has-photo::before { opacity: 1; background: linear-gradient(180deg, rgba(42, 7, 16, .35), rgba(42, 7, 16, .85)); }
.ba-story > * { position: relative; }
.ba-story .eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--b-gold); }
.ba-story h2 { font-family: var(--b-serif); font-size: 2.3rem; line-height: 1.1; margin: 6px 0 0; font-weight: 700; }
.ba-story .lede { font-size: .98rem; line-height: 1.65; color: rgba(255, 255, 255, .88); margin: 0; max-width: 40rem; }
.ba-figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .25); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.ba-figures div { padding: 14px 12px 14px 0; }
.ba-figures div + div { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 16px; }
.ba-figures b { display: block; font-family: var(--b-serif); font-size: 1.6rem; color: #fff; }
.ba-figures span { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); font-weight: 700; }
.ba-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid rgba(212, 168, 83, .6); display: grid; gap: 16px; }
.ba-timeline li { position: relative; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.ba-timeline li::before { content: ''; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; background: var(--b-gold); transform: rotate(45deg); }
.ba-timeline b { display: block; font-family: var(--b-serif); font-size: 1.05rem; color: #fff; }
.ba-story small { margin-top: auto; color: rgba(255, 255, 255, .6); font-size: .75rem; }
.ba-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ba-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.ba-points i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1.5px solid rgba(212, 168, 83, .7); color: var(--b-gold); }

/* verification code */
.ba-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 18px; }
.ba-code input { width: 52px !important; height: 62px !important; border: 1.5px solid var(--b-line) !important; border-radius: 2px !important; border-bottom: 3px solid var(--b-ink) !important; text-align: center;
  font-family: var(--b-serif) !important; font-size: 1.8rem !important; font-weight: 700 !important; color: var(--b-ink) !important; background: #FAFAF9 !important; padding: 0 !important; }
.ba-code input:focus { outline: 0; border-color: var(--b-red) !important; border-bottom-color: var(--b-red) !important; background: #fff !important; }
.ba-code .splitter { color: #B1B4BC; font-size: 1.4rem; }
.ba-resend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; font-size: .9rem; color: var(--b-muted); }
.ba-resend .timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--b-ink-2); }

/* new password */
.ba-meter { height: 6px; background: #E6E6E4; margin-top: 8px; overflow: hidden; }
.ba-meter > div { height: 100%; width: 0; transition: width .25s, background-color .25s; }
.ba-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; margin-top: 10px; font-size: .83rem; color: var(--b-muted); }
.ba-reqs .requirement { display: flex; align-items: center; gap: 7px; }
.ba-reqs .requirement i { font-size: .75rem; }
.ba-reqs .requirement.valid { color: var(--b-ok); font-weight: 700; }
.ba-match { font-size: .85rem; margin-top: 6px; font-weight: 700; }

.d-none { display: none !important; }

@media (max-width: 920px) {
  .ba-top { padding: 10px 16px; }
  .ba-top .tag { display: none; }
  .ba-wrap { grid-template-columns: 1fr; padding: 22px 14px 30px; }
  .ba-panel { padding: 28px 22px 24px; }
  .ba-panel h1 { font-size: 1.7rem; }
  .ba-story { padding: 30px 22px; }
  .ba-story h2 { font-size: 1.6rem; }
  .ba-story .ba-hide-sm { display: none; }
}
@media (max-width: 400px) { .ba-code input { width: 42px !important; height: 54px !important; font-size: 1.5rem !important; } .ba-reqs { grid-template-columns: 1fr; } .ba-figures b { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
