/* Surgicon login page - light enterprise layout, scoped under .lg */
.lg {
    --lg-brand: #e60012;
    --lg-brand-dark: #b0000d;
    --lg-ink: #172033;
    --lg-ink-2: #64748b;
    --lg-ink-3: #94a3b8;
    --lg-border: #e2e8f0;
    min-height: 100vh;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
    background: #f7f8fc;
    color: var(--lg-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
:where(.lg) :is(h1, h2, p, ul) { margin: 0; padding: 0; }

/* ---------- intro (left): brand photo ---------- */
.lg-intro {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
    padding: 46px 56px 44px 72px;
    background: #fff url('../img/brand/login-bg.webp') center bottom / cover no-repeat;
}
.lg-intro::before {                 /* soft white scrim so the copy stays readable over the photo */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .88) 28%, rgba(255, 255, 255, .35) 46%, rgba(255, 255, 255, 0) 58%);
}
.lg-logo { display: block; align-self: flex-start; height: 48px; width: auto; margin: 0 0 30px; }
.lg-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--lg-ink-2); }
.lg-intro h1 { margin-top: 12px; font-size: clamp(32px, 3vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: var(--lg-ink); max-width: 480px; }
.lg-intro h1 em { font-style: normal; color: var(--lg-brand); }
.lg-lead { margin-top: 12px; max-width: 430px; font-size: 14.5px; line-height: 1.6; color: var(--lg-ink-2); }
.lg-points {
    margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; max-width: 640px;
}
.lg-points li {
    display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 13px; font-size: 12.5px; font-weight: 600; color: var(--lg-ink); line-height: 1.35;
    background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, .9); border-radius: 14px; box-shadow: 0 8px 22px rgba(23, 32, 51, .07);
}
.lg-points i {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
    color: var(--lg-brand); background: #fdecee; border: 1px solid #f9d0d4;
}

/* ---------- sign-in card (right) ---------- */
.lg-main { display: flex; justify-content: center; align-items: center; padding: 40px 48px; }
.lg-card {
    width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--lg-border); border-radius: 20px; padding: 40px 36px 30px;
    box-shadow: 0 24px 60px rgba(23, 32, 51, .1), 0 2px 6px rgba(23, 32, 51, .04);
}
.lg-card h2 { font-size: 28px; font-weight: 750; letter-spacing: -.015em; color: var(--lg-ink); }
.lg-sub { margin-top: 6px; color: var(--lg-ink-2); font-size: 14.5px; }

.lg-form { margin-top: 28px; display: grid; gap: 18px; }
.lg-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--lg-ink); }
.lg-input { position: relative; }
.lg-input > i.lg-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--lg-ink-3); pointer-events: none; transition: color .15s; }
.lg-input input {
    width: 100%; height: 48px; padding: 0 46px 0 44px; font: inherit; font-size: 14.5px; color: var(--lg-ink);
    border: 1px solid var(--lg-border); border-radius: 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.lg-input input::placeholder { color: #a3adbc; }
.lg-input input:hover { border-color: #cbd5e1; }
.lg-input input:focus { border-color: var(--lg-brand); box-shadow: 0 0 0 4px rgba(230, 0, 18, .1); }
.lg-input:focus-within > i.lg-ico { color: var(--lg-brand); }
.lg-input input.is-invalid { border-color: #dc2626; background: #fffafa; }
.lg-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--lg-ink-3); border-radius: 9px; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.lg-toggle:hover { color: var(--lg-brand); background: #fdecee; }
.lg-err { margin-top: 6px; font-size: 12.5px; color: #dc2626; display: flex; align-items: center; gap: 5px; }
.lg-err.d-none { display: none; }

.lg-row { display: flex; align-items: center; justify-content: space-between; }
.lg-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--lg-ink-2); cursor: pointer; user-select: none; }
.lg-check input { width: 17px; height: 17px; accent-color: var(--lg-brand); cursor: pointer; }

.lg-alert { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 500; background: #fdecee; color: #991b1b; border: 1px solid #f8c4c9; }
.lg-alert i { font-size: 18px; }

.lg-btn {
    height: 50px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 650; color: #fff;
    background: linear-gradient(180deg, #f2182a 0%, #e60012 100%);
    box-shadow: 0 10px 22px rgba(230, 0, 18, .28);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(230, 0, 18, .34); filter: brightness(1.03); }
.lg-btn:active { transform: translateY(0); }
.lg-btn:disabled { cursor: progress; opacity: .85; transform: none; }
.lg-btn .lg-arrow { font-size: 18px; transition: transform .15s; }
.lg-btn:hover .lg-arrow { transform: translateX(3px); }
.lg-btn .lg-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lg-rot .7s linear infinite; display: none; }
.lg-btn.is-busy .lg-spinner { display: inline-block; }
.lg-btn.is-busy .lg-arrow { display: none; }
@keyframes lg-rot { to { transform: rotate(360deg); } }

.lg-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid #eef2f7; text-align: center; font-size: 12.5px; color: var(--lg-ink-3); }
.lg-secure { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .lg-intro { padding: 40px 28px 36px 40px; }
    .lg-points { grid-template-columns: 1fr; max-width: 360px; }
    .lg-points li { flex-direction: row; align-items: center; }
    .lg-main { padding: 32px; }
}
@media (max-width: 991px) {
    .lg { grid-template-columns: 1fr; }
    .lg-intro { min-height: 0; text-align: center; align-items: center; padding: 30px 22px 150px; background-position: center bottom; }
    .lg-intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 55%, rgba(255, 255, 255, 0) 100%); }
    .lg-logo { margin: 0 auto 22px; height: 50px; }
    .lg-intro h1 { margin: 12px auto 0; font-size: 28px; }
    .lg-lead { margin: 10px auto 0; font-size: 14px; }
    .lg-points { display: none; }
    .lg-main { margin-top: -120px; padding: 0 18px 36px; position: relative; z-index: 1; }
    .lg-card { padding: 30px 24px 24px; }
}
@media (max-width: 420px) {
    .lg-intro { padding: 24px 16px 140px; }
    .lg-intro h1 { font-size: 25px; }
    .lg-main { padding: 0 12px 28px; }
    .lg-card { padding: 26px 18px 20px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .lg *, .lg *::before, .lg *::after { animation: none !important; transition: none !important; } }
