/* ============================================================
   IUEC Connector — Sign in page
   Split-screen brand panel + form card, matching the supplied
   design (login.jsx / styles.css). Scoped to .lgn-page so it
   can't leak into the rest of either panel.
   ============================================================ */

.lgn-page {
    --iuec-navy: #16265B;
    --iuec-navy-deep: #0C1733;
    --iuec-red: #E11B22;
    --iuec-blue: #2A318C;
    --danger: #E11B22;

    --c-white: #ffffff;
    --c-50: #f9fafb;
    --c-100: #f3f4f6;
    --c-200: #e5e7eb;
    --c-300: #d1d5db;
    --c-500: #6b7280;
    --c-600: #4b5563;
    --c-700: #374151;
    --c-900: #111827;

    --p-50: #eef1f8;
    --p-100: #dbe2f0;
    --p-500: #344f8a;
    --p-600: #16265B;
    --p-700: #132150;
    --p-800: #101b41;

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lgn-page * { box-sizing: border-box; }

.lgn-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #f4f5fa; }

/* left brand panel */
.lgn-brandpanel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px 48px;
    background: var(--iuec-navy);
    isolation: isolate;
}
.lgn-photo { position: absolute; inset: 0; z-index: 0; }
.lgn-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lgn-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(190deg, rgba(12,23,51,.16) 0%, rgba(12,23,51,.20) 42%, rgba(12,23,51,.72) 68%, rgba(12,23,51,.94) 100%);
}
.lgn-brandtop, .lgn-brandcopy { position: relative; z-index: 2; }
.lgn-brandtop { display: flex; align-items: center; gap: 13px; }
.lgn-brandtop img { height: 44px; width: auto; display: block; }
.lgn-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.lgn-wordmark b { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.lgn-wordmark span { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.lgn-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .8; }
.lgn-brandcopy h2 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: #fff; margin: 14px 0 0; max-width: 15ch; }
.lgn-rule { width: 64px; height: 4px; border-radius: 2px; background: var(--iuec-red); margin: 20px 0 18px; }
.lgn-brandcopy p { font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0; max-width: 34ch; }

/* right form side */
.lgn-formside { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px; }
@media (max-width: 900px) { .lgn-split { grid-template-columns: 1fr; } .lgn-brandpanel { display: none; } }
.lgn-card { width: 100%; max-width: 452px; background: var(--c-white); border: 1px solid var(--c-200); border-radius: 14px; box-shadow: 0 1px 3px rgba(22,38,91,.06); padding: 26px 48px 40px; }
.lgn-seal { display: block; height: 46px; width: auto; margin: 0 auto; }
.lgn-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--c-900); text-align: center; margin: 12px 0 30px; }
.lgn-field { margin-bottom: 20px; }
.lgn-labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lgn-label { display: block; font-size: 14px; font-weight: 600; color: var(--c-900); margin-bottom: 7px; }
.lgn-req { color: var(--danger); font-size: 11px; vertical-align: super; margin-left: 1px; }
.lgn-link { border: 0; background: transparent; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--iuec-blue); cursor: pointer; margin-bottom: 7px; text-decoration: none; }
.lgn-link:hover { text-decoration: underline; }
.lgn-input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--c-300); border-radius: 8px; font-size: 14.5px; color: var(--c-900); background: var(--c-white); box-shadow: 0 1px 2px rgba(22,38,91,.05); outline: 0; transition: border-color .12s, box-shadow .12s; font-family: inherit; }
.lgn-input:focus { border-color: var(--p-500); box-shadow: 0 0 0 3px var(--p-100); }
.lgn-input.bad { border-color: var(--danger); }
.lgn-inputgroup { display: flex; align-items: stretch; border: 1px solid var(--c-300); border-radius: 8px; background: var(--c-white); box-shadow: 0 1px 2px rgba(22,38,91,.05); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.lgn-inputgroup:focus-within { border-color: var(--p-500); box-shadow: 0 0 0 3px var(--p-100); }
.lgn-inputgroup.bad { border-color: var(--danger); }
.lgn-inputgroup .lgn-input { border: 0; border-radius: 0; box-shadow: none; flex: 1; min-width: 0; }
.lgn-inputgroup .lgn-input:focus { box-shadow: none; }
.lgn-reveal { flex-shrink: 0; width: 46px; border: 0; border-left: 1px solid var(--c-300); background: var(--c-50); color: var(--c-500); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .12s, color .12s; }
.lgn-reveal:hover { background: var(--c-100); color: var(--c-700); }
.lgn-err { font-size: 12.5px; color: var(--danger); margin-top: 6px; font-weight: 500; }
.lgn-check { display: flex; align-items: center; gap: 11px; cursor: pointer; margin: 4px 0 22px; user-select: none; }
.lgn-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.lgn-box { width: 20px; height: 20px; flex-shrink: 0; border: 1px solid var(--c-300); border-radius: 6px; background: var(--c-white); box-shadow: 0 1px 2px rgba(22,38,91,.05); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: background .12s, border-color .12s, color .12s; }
.lgn-check input:checked + .lgn-box { background: var(--p-600); border-color: var(--p-600); color: #fff; }
.lgn-check input:focus-visible + .lgn-box { box-shadow: 0 0 0 3px var(--p-100); }
.lgn-checktext { font-size: 14.5px; color: var(--c-900); }
.lgn-submit { width: 100%; height: 46px; border: 0; border-radius: 8px; background: var(--p-600); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(22,38,91,.12); transition: background .12s; }
.lgn-submit:hover:not(:disabled) { background: var(--p-700); }
.lgn-submit:active:not(:disabled) { background: var(--p-800); }
.lgn-submit:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 560px) { .lgn-card { padding: 24px 24px 32px; } }
