/* Panel login (Default.aspx): a brand panel with the rotating showroom photos on the left, the sign-in form on the
   right; in the design language of the panel header (Styles/header.css) and list pages (Styles/list-page.css). */

:root {
    --lg-bg: #f3f5f8;
    --lg-card: #ffffff;
    --lg-border: #e1e5ea;
    --lg-text: #22262b;
    --lg-strong: #1f2d3d;
    --lg-muted: #7d8590;
    --lg-accent: #2c6aa0;
    --lg-accent-dark: #22578a;
    --lg-accent-soft: rgba(44, 106, 160, .12);
    --lg-brand: #22a447;
    --lg-dark: #1d2025;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.lg {
    margin: 0; background: var(--lg-bg); color: var(--lg-text);
    font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.lg a { color: var(--lg-accent); text-decoration: none; }
.lg a:hover { color: var(--lg-accent-dark); }
.lg svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lg-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); min-height: 100vh; }

/* Brand panel: corporate blue gradient with a fading dot grid, a collage of the showroom photos and floating cards */
.lg-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(255, 255, 255, .14), transparent 60%),
        radial-gradient(700px 500px at 110% 110%, rgba(34, 164, 71, .22), transparent 60%),
        linear-gradient(155deg, #14273a 0%, #1d3a56 48%, #2c6aa0 100%);
}
.lg-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.lg-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; padding: 40px 56px 32px; }
.lg-hero-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
/* Logo fitted into a white chip; the initial + name are the fallback */
.lg-chip { display: flex; align-items: center; height: 52px; padding: 6px 14px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.lg-chip img { display: block; width: auto; height: auto; max-height: 40px; max-width: 240px; object-fit: contain; }
.lg-hero-brand:not(.lg-nologo) .lg-mark, .lg-hero-brand:not(.lg-nologo) .lg-name { display: none; }
.lg-hero-brand.lg-nologo .lg-chip { display: none; }
.lg-mark {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--lg-brand); color: #fff;
    font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px rgba(34, 164, 71, .35);
}
/* Collage */
.lg-bento {
    position: relative; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
    width: 100%; max-width: 620px; height: clamp(280px, 44vh, 440px); margin: 0;
}
.lg-tile {
    border-radius: 18px; background-size: cover; background-repeat: no-repeat; background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 48px rgba(5, 15, 30, .35);
}
.lg-tile-a { grid-row: 1 / span 2; background-position: 38% center; }
.lg-tile-b { background-position: 22% center; }
.lg-tile-c { background-position: 78% center; }
.lg-float {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 14px;
    background: rgba(255, 255, 255, .95); color: #1f2d3d; box-shadow: 0 18px 40px rgba(5, 15, 30, .35);
    animation: lg-bob 6s ease-in-out infinite;
}
.lg-float b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.lg-float small { display: block; font-size: 12px; color: #7d8590; line-height: 1.3; }
.lg-float-1 { left: -22px; bottom: 20%; }
.lg-float-2 { right: -18px; top: 9%; animation-delay: -2s; }
.lg-float-3 { right: 8%; bottom: -16px; animation-delay: -4s; }
.lg-float-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; flex: none; }
.lg-float-icon svg { width: 19px; height: 19px; }
.lg-float-blue { background: #2c6aa0; }
.lg-float-green { background: #22a447; }
.lg-float-gold { background: #b5741c; }
@keyframes lg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lg-float { animation: none; } }

.lg-hero-copy { max-width: 560px; }
.lg-hero-copy h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; }
.lg-hero-copy p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .75); }
.lg-hero-foot { font-size: 12px; color: rgba(255, 255, 255, .55); }

/* Form side */
.lg-main { display: flex; flex-direction: column; min-height: 100vh; padding: 32px 24px 20px; }
.lg-card { width: 100%; max-width: 400px; margin: auto; }
.lg-logo { display: flex; align-items: center; height: 48px; margin-bottom: 28px; }
.lg-logo img { max-height: 48px; max-width: 220px; object-fit: contain; }
.lg-logo .lg-mark { display: none; }
.lg-logo.lg-logo-missing img { display: none; }
.lg-logo.lg-logo-missing .lg-mark { display: grid; }
.lg-card h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--lg-strong); }
.lg-sub { margin: 0 0 26px; color: var(--lg-muted); }
.lg-sub b { color: var(--lg-text); font-weight: 600; }

.lg-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; margin-bottom: 20px; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid; }
.lg-alert svg { margin-top: 1px; }
.lg-alert-error { background: #fbeeee; border-color: #f0cfd1; color: #9b3d45; }
.lg-alert-warning { background: #fbf4e8; border-color: #f0dfbd; color: #8a5a14; }
.lg-alert-success { background: #ebf6f4; border-color: #c6e5e0; color: #23737c; }

.lg-field { margin-bottom: 18px; }
.lg-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lg-field label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 600; color: var(--lg-text); }
.lg-label-row a { font-size: 12.5px; font-weight: 600; }
.lg-input { position: relative; display: flex; align-items: center; }
.lg-input > svg { position: absolute; left: 14px; color: #9aa1a9; pointer-events: none; }
.lg-input input {
    width: 100%; height: 48px; padding: 0 44px 0 44px; border: 1px solid var(--lg-border); border-radius: 10px; background: #fff;
    color: var(--lg-text); font: inherit; font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.lg-input input::placeholder { color: #a8aeb5; }
.lg-input input:focus { outline: none; border-color: var(--lg-accent); box-shadow: 0 0 0 4px var(--lg-accent-soft); }
.lg-input:focus-within > svg { color: var(--lg-accent); }
.lg-eye {
    position: absolute; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px;
    background: transparent; color: #8a929c; cursor: pointer;
}
.lg-eye:hover, .lg-eye:focus { background: #f2f4f7; color: var(--lg-text); outline: none; }
.lg-eye .lg-eye-off { display: none; }
.lg-eye.lg-on .lg-eye-on { display: none; }
.lg-eye.lg-on .lg-eye-off { display: block; }

.lg .lg-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 6px; padding: 0 18px;
    border: 1px solid var(--lg-accent); border-radius: 10px; background: var(--lg-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; box-shadow: 0 8px 20px rgba(44, 106, 160, .25); transition: background .15s, box-shadow .15s, transform .05s;
}
.lg .lg-btn:hover, .lg .lg-btn:focus { background: var(--lg-accent-dark); border-color: var(--lg-accent-dark); outline: none; }
.lg .lg-btn:active { transform: translateY(1px); }
.lg .lg-btn[disabled] { opacity: .75; cursor: default; }
.lg .lg-btn-ghost { background: #fff; color: var(--lg-text); border-color: var(--lg-border); box-shadow: none; }
.lg .lg-btn-ghost:hover, .lg .lg-btn-ghost:focus { background: #f6f7f9; color: var(--lg-text); border-color: #d3d8de; }

.lg-forgot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--lg-border); }
.lg-forgot h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--lg-strong); }
.lg-forgot p { margin: 0 0 14px; font-size: 13px; color: var(--lg-muted); }

.lg-footer { margin-top: 24px; text-align: center; font-size: 12.5px; color: var(--lg-muted); }
.lg-footer a { font-weight: 600; color: var(--lg-text); }
.lg-footer a:hover { color: var(--lg-accent); }

/* reCAPTCHA v3 badge: keep it from covering the footer on small screens */
.grecaptcha-badge { z-index: 5; }

@media (min-width: 961px) {
    .lg-logo { display: none; }
}
@media (max-width: 960px) {
    .lg-shell { grid-template-columns: 1fr; }
    .lg-hero { display: none; }
    .lg-main { padding: 24px 16px 16px; }
}
