﻿/* ------------------------------------------------------------------
   login.css - the split-screen sign-in (index.aspx, reset.aspx).
   Same layout as the Claims Management System, Rising Softball and Fleet
   Care sign-ins: the brand panel with a headline on the left, the form on
   the right, stacked on a phone. Colours come from app.css, so light and
   dark both work.
   ------------------------------------------------------------------ */
html, body { height: 100%; }
body { margin: 0; }
form { min-height: 100%; }
.lg-wrap { display: flex; min-height: 100vh; }

/* brand side */
.lg-photo {
  position: relative; flex: 1 1 58%; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 52px;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(42, 159, 216, .45), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(42, 159, 216, .22), transparent 60%),
    linear-gradient(160deg, #1e376c 0%, #142a57 55%, #0b1a3a 100%);
}
.lg-photo::before {  /* faint road grid */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.lg-photo::after {   /* the logo's swoosh, large and quiet */
  content: ""; position: absolute; right: -120px; top: 34%; width: 760px; height: 240px; border-radius: 50%;
  border-top: 26px solid rgba(42, 159, 216, .28); transform: rotate(-8deg);
}
.lg-photo > * { position: relative; z-index: 1; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.85); }
.lg-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--brand-2); border-radius: 2px; }
.lg-head h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.6px; margin: 14px 0; max-width: 16ch; text-wrap: balance; color: #fff; }
.lg-head p { font-size: 16px; line-height: 1.6; max-width: 46ch; color: rgba(255,255,255,.86); margin: 0 0 24px; }
.lg-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 50ch; }
.lg-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.92); }
.lg-points i { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 1px; }
.lg-foot { font-size: 12px; color: rgba(255,255,255,.7); display: flex; gap: 18px; flex-wrap: wrap; }

/* form side */
.lg-side { position: relative; flex: 0 0 42%; max-width: 580px; min-width: 380px; display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; background: var(--surface); }
.lg-card { width: 100%; max-width: 400px; margin: 0 auto; }
.lg-logo { display: inline-block; margin: 0 0 30px; padding: 8px 12px; border-radius: 12px; background: #fff; }
.lg-logo img { max-height: 84px; width: auto; display: block; }
.login-title { font-size: 25px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 4px; color: var(--heading); }
.lg-sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.lg-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.lg-field { position: relative; margin-bottom: 16px; }
.lg-field > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.lg-field .form-control { height: 48px; padding: 0 14px 0 42px; font-size: 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); box-shadow: none; }
.lg-field .form-control:focus { background: var(--field-bg); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lg-field .form-control::placeholder { color: var(--muted); opacity: .8; }
.lg-field .lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.lg-field .lg-eye:hover { color: var(--text); background: var(--accent-soft); }
.btn-ink, a.btn-ink { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: background .15s, transform .05s; }
.btn-ink:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ink:active { transform: translateY(1px); }
.btn-soft { width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; }
.btn-soft:hover { background: var(--surface-2); }
.login-links { font-size: 13px; margin-top: 14px; color: var(--muted); }
.login-links a { font-weight: 600; }
.lg-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; font-size: 13px; padding: 10px 14px; margin-bottom: 18px; }
.lg-alert.bad { background: rgba(214, 51, 75, .09); border: 1px solid rgba(214, 51, 75, .25); color: var(--danger); }
.lg-alert.ok { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
.lg-alert i { margin-top: 2px; }
.lg-help { font-size: 12px; color: var(--muted); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); line-height: 1.6; }
.lg-theme { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); }
.lg-theme:hover { color: var(--text); }
#pnlForgot { display: none; }
.lg-card.forgot #pnlLogin { display: none; }
.lg-card.forgot #pnlForgot { display: block; }
.val-msg { display: block; color: var(--danger); font-size: 12.5px; margin: -8px 0 12px; }

@media (max-width: 991.98px) {
  .lg-wrap { flex-direction: column; }
  .lg-photo { flex: 0 0 auto; padding: 26px 22px 24px; }
  .lg-photo::after { display: none; }
  .lg-head h1 { font-size: 25px; max-width: none; margin-bottom: 0; }
  .lg-head p, .lg-points, .lg-foot { display: none; }
  .lg-side { flex: 1 1 auto; max-width: none; min-width: 0; padding: 30px 22px 40px; justify-content: flex-start; }
  .lg-logo img { max-height: 64px; }
}
