/* Login: company photo with a frosted glass panel */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #fff; background: #0e1a33; }

.lg { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); overflow: hidden; isolation: isolate; }
/* blurred copy of the photo fills the whole page, so the glass side has something to frost */
.lg::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: url(login-bg.webp) 58% center / cover no-repeat; filter: blur(22px) brightness(.72) saturate(1.1); }
.lg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,18,38,0) 40%, rgba(10,18,38,.38) 100%); }

/* sharp photo on the left, framed so the logo on the wall stays in view */
.lg-photo { background: url(login-bg.webp) 56% center / cover no-repeat; min-height: 100vh; }

.lg-glass { position: relative; display: grid; place-items: center; padding: 40px clamp(24px, 5vw, 72px);
  background: rgba(255,255,255,.10); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lg-bar { position: absolute; left: -3px; top: 14%; bottom: 14%; width: 5px; border-radius: 5px; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.55); }

form { width: 100%; max-width: 380px; animation: lg-in .5s ease both; }
h1 { margin: 0; text-align: center; font-size: 40px; font-weight: 600; letter-spacing: .01em; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.lg-sub { margin: 4px 0 30px; text-align: center; color: rgba(255,255,255,.82); font-size: 15px; }
label { display: block; margin: 0 0 8px 4px; font-size: 16px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.35); }

.lg-input { position: relative; margin-bottom: 20px; }
.lg-input > svg { position: absolute; left: 16px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); pointer-events: none; }
svg { fill: none; stroke: #55607a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-input input { width: 100%; height: 52px; padding: 0 48px 0 50px; border: 2px solid transparent; border-radius: 14px; background: #fff; color: #0f172a; font: inherit; font-size: 16px;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.55); transition: border-color .15s, box-shadow .15s; }
.lg-input input::placeholder { color: #9aa3b5; }
.lg-input input:focus { outline: 0; border-color: #5bcbf5; box-shadow: 0 0 0 4px rgba(91,203,245,.35), 0 10px 26px -12px rgba(0,0,0,.55); }
.lg-input button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.lg-input button svg { width: 21px; height: 21px; }
.lg-input button:hover { background: #eef2f7; }
.lg-input button:focus-visible { outline: 2px solid #0e7490; }
.lg-input button.on .lg-slash { display: none; }

.lg-forgot { margin: -8px 0 26px 4px; font-size: 13px; font-style: italic; color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.lg-submit { width: 100%; height: 54px; border: 0; border-radius: 14px; background: #f0981f; color: #111827; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 14px 28px -12px rgba(240,152,31,.9); transition: transform .12s, filter .15s, box-shadow .15s; }
.lg-submit svg { width: 20px; height: 20px; stroke: #111827; stroke-width: 2.2; transition: transform .15s; }
.lg-submit:hover { filter: brightness(1.06); box-shadow: 0 18px 32px -12px rgba(240,152,31,1); }
.lg-submit:hover svg { transform: translateX(4px); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lg-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.78); }
.lg-error { background: rgba(127,29,29,.88); border: 1px solid rgba(254,202,202,.6); color: #fff; padding: 11px 14px; border-radius: 12px; margin-bottom: 20px; font-size: 14.5px; }

@keyframes lg-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { form { animation: none; } .lg-submit, .lg-submit svg, .lg-input input { transition: none; } }

@media (max-width: 860px) {
  .lg { grid-template-columns: 1fr; grid-template-rows: 34vh 1fr; }
  .lg-photo { min-height: 0; background-position: 56% 38%; }
  .lg-glass { padding: 30px 20px 36px; place-items: start center; }
  .lg-bar { left: 14%; right: 14%; top: -3px; bottom: auto; width: auto; height: 5px; }
  h1 { font-size: 32px; }
  .lg-sub { margin-bottom: 22px; }
}
