/* ============================================================
   MelioraBMP — sign-in page (Views/Account/Login.cshtml)
   Loaded after pos.css; everything is scoped to .bmp-login. The palette
   comes from the shared tokens in pos.css (:root).
   ============================================================ */
.bmp-login {
    --bmp-blue: var(--brand-500);
    --bmp-blue-600: var(--brand-600);
    --bmp-blue-3: var(--brand-300);
    --bmp-navy: var(--brand-900);
    --bmp-navy-2: var(--brand-700);
    --bmp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    background: #f5f7fb;
}
body.bmp-login-page { background: #f5f7fb; }

/* ── Form column ───────────────────────────────────────────── */
.bmp-form { display: flex; align-items: center; justify-content: center; padding: 24px 16px 32px; }
.bmp-login .login-card { max-width: 420px; box-shadow: 0 24px 60px -24px rgba(11, 23, 48, .35); }
.bmp-login .login-card .login-logo-img { padding: 0; }
.bmp-login .login-card h1 { font: 600 28px/1.1 var(--bmp-serif); letter-spacing: -.01em; color: #0d1b36; }
.bmp-login .bmp-tagline { margin: 6px 0 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bmp-blue); }
.bmp-login .login-card p.sub { margin-top: 12px; }
.bmp-login .btn-primary { background: var(--bmp-blue); }
.bmp-login .btn-primary:hover { background: var(--bmp-blue-600); filter: none; }
.bmp-login input.field:focus { border-color: var(--bmp-blue); box-shadow: 0 0 0 4px rgba(29, 95, 214, .14); }
.bmp-login .auth-alt a { color: var(--bmp-blue); }
.bmp-discover { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.bmp-discover a { color: var(--bmp-blue); font-weight: 700; text-decoration: none; }
.bmp-discover a:hover { text-decoration: underline; }

/* ── Brand panel ───────────────────────────────────────────── */
.bmp-brand {
    position: relative; overflow: hidden; color: #e9eef9;
    padding: 36px 20px calc(36px + var(--safe-bottom));
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(75, 141, 255, .35), transparent 70%),
        radial-gradient(600px 400px at 0% 100%, rgba(15, 122, 143, .25), transparent 70%),
        linear-gradient(160deg, var(--bmp-navy), var(--bmp-navy-2));
}
.bmp-brandbar { display: flex; align-items: center; gap: 12px; }
.bmp-brandbar img { border-radius: 11px; }
.bmp-brandbar span { font: 600 22px/1.1 var(--bmp-serif); color: #fff; }
.bmp-brandbar b { font: 800 12px/1 var(--sans, 'Inter', sans-serif); font-family: 'Inter', system-ui, sans-serif; letter-spacing: .1em; color: #cfe0ff; background: rgba(75, 141, 255, .25); padding: 4px 7px; border-radius: 6px; vertical-align: 3px; margin-left: 6px; }
.bmp-brandbar small { display: block; margin-top: 5px; font: 500 12.5px/1 'Inter', system-ui, sans-serif; color: #a8b5d4; }

.bmp-pitch { margin-top: 28px; }
.bmp-pitch h2 { margin: 0; font: 600 30px/1.1 var(--bmp-serif); letter-spacing: -.015em; color: #fff; }
.bmp-pitch h2 em { font-style: italic; color: var(--bmp-blue-3); }
.bmp-pitch p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: #a8b5d4; max-width: 36em; }
.bmp-more {
    display: inline-flex; margin-top: 18px; padding: 10px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .15s;
}
.bmp-more:hover { background: rgba(255, 255, 255, .18); }

.bmp-tiles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.bmp-tiles li {
    display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    animation: bmpTileIn .5s cubic-bezier(.2, .8, .2, 1) calc(.08s * var(--i) + .15s) both;
}
.bmp-tiles .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(143, 182, 255, .16); color: var(--bmp-blue-3); }
.bmp-tiles b { display: block; font-size: 14.5px; color: #fff; }
.bmp-tiles small { display: block; margin-top: 2px; font-size: 13px; color: #a8b5d4; }
@keyframes bmpTileIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .bmp-tiles li { animation: none; } }

.bmp-trust { margin: 22px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #7f8db0; }

/* The brand bar repeats the form header on small screens, so only show it beside the form. */
.bmp-brandbar { display: none; }

@media (min-width: 560px) {
    .bmp-tiles { grid-template-columns: 1fr 1fr; }
    .bmp-brand { padding-left: 32px; padding-right: 32px; }
}

/* ── Wide screens: brand panel on the left, form on the right ─ */
@media (min-width: 960px) {
    .bmp-login { grid-template-columns: minmax(0, 1.45fr) minmax(420px, 1fr); }
    .bmp-brand { order: -1; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(40px, 5vw, 80px); }
    .bmp-brandbar { display: flex; margin-bottom: 36px; }
    .bmp-pitch { margin-top: 0; }
    .bmp-pitch h2 { font-size: clamp(34px, 3.4vw, 50px); }
    .bmp-pitch p { font-size: 17px; }
    .bmp-tiles { max-width: 760px; }
    .bmp-form { padding: 32px; }
}
@media (min-width: 960px) and (max-height: 700px) {
    .bmp-tiles small { display: none; }
    .bmp-brandbar { margin-bottom: 20px; }
}
