/* =====================================================================
   HESCOM login / auth pages (LoginMaster.master)
   ===================================================================== */
:root {
    --au-navy: #0b1d33;
    --au-navy-2: #123a63;
    --au-accent: #f28c28;
    --au-accent-2: #ffb547;
    --au-primary: #1c6fb8;
    --au-text: #1f2d3d;
    --au-muted: #66788a;
    --au-border: #dbe3ec;
    --au-bg: #f2f5f9;
    --au-danger: #d64541;
}
html, body.auth-body { margin: 0; padding: 0; min-height: 100%; }
body.auth-body {
    background: var(--au-bg);
    color: var(--au-text);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }

/* default: centred card for simple pages (e.g. ForceToChangePassword) */
.auth-card-host {
    width: 100%; max-width: 760px; margin: 40px auto 0; padding: 28px;
    background: #fff; border: 1px solid var(--au-border); border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 35, 56, .08);
    overflow-x: auto; box-sizing: border-box;
}
.auth-footer { margin-top: auto; padding: 16px; text-align: center; font-size: 12.5px; color: var(--au-muted); }

/* ===================== Login (Default.aspx) ===================== */
.lg, .lg * { box-sizing: border-box; }
.lg { display: flex; min-height: calc(100vh - 50px); }

/* ---- hero ---- */
.lg-hero {
    position: relative; overflow: hidden;
    flex: 1 1 58%;
    background:
        radial-gradient(1200px 500px at 110% -10%, rgba(242, 140, 40, .28), transparent 60%),
        radial-gradient(800px 500px at -10% 110%, rgba(28, 111, 184, .45), transparent 60%),
        linear-gradient(150deg, var(--au-navy) 0%, var(--au-navy-2) 100%);
    color: #fff;
    display: flex; align-items: center;
}
.lg-grid { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; pointer-events: none; }
.lg-pulse { stroke-dasharray: 90 900; animation: lgPulse 6s linear infinite; }
.lg-pulse-2 { animation-delay: -3s; animation-duration: 7.5s; }
@keyframes lgPulse { from { stroke-dashoffset: 990; } to { stroke-dashoffset: 0; } }

.lg-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 48px 56px; }
.lg-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.lg-brand img { width: 58px; height: 58px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.lg-brand strong { display: block; font-size: 22px; letter-spacing: 1px; }
.lg-brand span { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); }

.lg-title { margin: 0 0 12px; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.5px; }
.lg-title span {
    background: linear-gradient(90deg, var(--au-accent-2), var(--au-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-sub { margin: 0 0 26px; max-width: 520px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

.lg-stats { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-stats li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: 20px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px; color: rgba(255, 255, 255, .9);
}
.lg-stats .fa { color: var(--au-accent-2); }

.lg-services-title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.lg-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
a.lg-service {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
    color: #fff; text-decoration: none;
    transition: background .2s, transform .2s, border-color .2s;
}
a.lg-service:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.lg-service-ico {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px; font-size: 17px; color: #fff;
}
.s-pay  { background: linear-gradient(135deg, #2ecc71, #1e9e57); }
.s-dash { background: linear-gradient(135deg, #3d9be9, #1c6fb8); }
.s-conn { background: linear-gradient(135deg, #ffb547, #f28c28); }
.s-cust { background: linear-gradient(135deg, #a66cff, #7444d6); }
.s-jsvs { background: linear-gradient(135deg, #ff6b8b, #e0435f); }
.lg-service-text { flex: 1; min-width: 0; line-height: 1.3; }
.lg-service-text b { display: block; font-size: 14px; font-weight: 600; }
.lg-service-text small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.lg-service-go { color: rgba(255, 255, 255, .5); }

/* ---- login panel ---- */
.lg-panel { flex: 1 1 42%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--au-bg); }
.lg-card {
    width: 100%; max-width: 400px;
    background: #fff; border: 1px solid var(--au-border); border-radius: 18px;
    padding: 32px 32px 26px;
    box-shadow: 0 20px 50px rgba(16, 35, 56, .10);
}
.lg-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lg-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px; border-radius: 20px;
    background: #fff4e8; color: #c56a12; font-size: 12.5px; font-weight: 600;
}
.lg-clock { font-size: 13px; color: var(--au-muted); font-variant-numeric: tabular-nums; }
.lg-greet { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--au-text); }
.lg-greet-sub { margin: 0 0 24px; font-size: 14px; color: var(--au-muted); }

.lg-field { margin-bottom: 16px; }
.lg-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #3a4a5c; }
.lg-input-wrap { position: relative; }
.lg-input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #93a3b5; font-size: 15px; pointer-events: none; }
input.lg-input {
    width: 100%; height: 46px; margin: 0;
    padding: 0 14px 0 40px;
    border: 1.5px solid var(--au-border); border-radius: 11px;
    background: #f9fbfd; color: var(--au-text);
    font: 15px "Segoe UI", Roboto, Arial, sans-serif;
    outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input.lg-input-pass { padding-right: 44px; }
input.lg-input:focus { border-color: var(--au-primary); background: #fff; box-shadow: 0 0 0 4px rgba(28, 111, 184, .12); }
.lg-input-wrap.lg-err input.lg-input { border-color: var(--au-danger); box-shadow: 0 0 0 4px rgba(214, 69, 65, .1); }
.lg-input-wrap.lg-err .lg-input-ico { color: var(--au-danger); }
.lg-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; border-radius: 8px; background: none;
    color: #93a3b5; cursor: pointer; font-size: 15px;
}
.lg-eye:hover { background: #eef3f8; color: var(--au-primary); }
.lg-caps { display: none; margin-top: 6px; font-size: 12.5px; color: #b26a00; }

.lg-row { display: flex; justify-content: flex-end; margin: -4px 0 18px; }
a.lg-link { font-size: 13px; color: var(--au-primary); text-decoration: none; font-weight: 600; }
a.lg-link:hover { text-decoration: underline; }

input.lg-btn {
    width: 100%; height: 48px; margin: 0;
    border: 0; border-radius: 11px; cursor: pointer;
    background: linear-gradient(135deg, var(--au-accent-2), var(--au-accent));
    color: #fff; font: 600 15.5px "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .3px;
    box-shadow: 0 8px 20px rgba(242, 140, 40, .32);
    transition: transform .15s, box-shadow .15s, filter .15s;
    -webkit-appearance: none;
}
input.lg-btn:hover { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(242, 140, 40, .4); }
input.lg-btn:active { transform: translateY(1px); }
input.lg-btn:focus-visible { outline: 3px solid rgba(28, 111, 184, .4); outline-offset: 2px; }
input.lg-btn.lg-loading { filter: saturate(.6); cursor: progress; }

.lg-secure { margin-top: 18px; text-align: center; font-size: 12px; color: var(--au-muted); }

/* footer sits under the login card on the login page */
.lg ~ .auth-footer, .auth-page .auth-footer { background: transparent; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
    .lg-hero-inner { padding: 40px 32px 48px; }
    .lg-title { font-size: 34px; }
}
.lg-mobile-brand { display: none; }

/* tablet & phone: brand band + card first, services below */
@media (max-width: 900px) {
    .lg { flex-direction: column; min-height: 0; }
    .lg-panel {
        order: -1; flex: none; flex-direction: column; padding: 0 16px 28px;
        background: linear-gradient(180deg, var(--au-navy) 0, var(--au-navy-2) 210px, var(--au-bg) 210px);
    }
    .lg-mobile-brand { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; padding: 22px 4px 18px; color: #fff; }
    .lg-mobile-brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; }
    .lg-mobile-brand strong { display: block; font-size: 18px; letter-spacing: .8px; }
    .lg-mobile-brand span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
    .lg-card { max-width: 440px; padding: 24px 20px 20px; border-radius: 16px; }
    .lg-hero { flex: none; }
    .lg-hero-inner { padding: 26px 16px 30px; max-width: 480px; }
    .lg-hero .lg-brand, .lg-hero .lg-title, .lg-hero .lg-sub, .lg-hero .lg-stats { display: none; }
    .lg-grid { height: 100%; opacity: .5; }
}
@media (max-width: 520px) {
    .lg-services { grid-template-columns: 1fr; }
    .lg-greet { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-pulse { animation: none; }
    a.lg-service, input.lg-btn { transition: none; }
}

/* ---------- one login per browser: "already signed in" banner ---------- */
.lg-active { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 14px 12px; border-radius: 12px;
    background: #fff7e8; border: 1px solid #f5cf8f; color: #6b4a12; }
.lg-active-ico { font-size: 26px; color: #e08a14; margin-top: 2px; }
.lg-active-text b { display: block; font-size: 14px; color: #5a3d0c; margin-bottom: 2px; }
.lg-active-text span { display: block; font-size: 13px; line-height: 1.45; }
.lg-active-text strong { color: #3d2a08; }
.lg-active-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lg-active-btns a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.lg-active-go { background: #1c6fb8; color: #fff !important; }
.lg-active-go:hover { background: #175d9b; }
.lg-active-out { background: #fff; color: #b3261e !important; border: 1px solid #e7b4b0; }
.lg-active-out:hover { background: #fdecea; }
input.lg-btn[disabled], input.lg-btn.aspNetDisabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- "you were signed out" note on the login page ---------- */
.lg-signedout { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
    background: #eaf3fc; border: 1px solid #b9d6f2; color: #174a7a; font-size: 13px; line-height: 1.45; }
.lg-signedout .fa { font-size: 18px; color: #1c6fb8; margin-top: 1px; }