/* Raptool Device Manager 2.3 - login screen: blurred teal gradient, glass card, navy avatar circle (reference: login-reference.jpg).
   Scoped to .login-screen.lg so the rest of the app is untouched. Works light + dark, 390 px phone. */
.login-screen.lg {
  --lg-navy: #0c2250; --lg-navy-hi: #14306b; --lg-ink: #ffffff; --lg-line: rgba(255, 255, 255, .72);
  --lg-card: rgba(44, 108, 124, .58); --lg-card-edge: rgba(255, 255, 255, .22);
  position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; padding: 96px 16px 48px;
  background: linear-gradient(135deg, #6f9ba7 0%, #9cc3cf 45%, #bfe2eb 100%);
  color: var(--lg-ink); font-family: inherit;
}
:root[data-theme="dark"] .login-screen.lg {
  --lg-navy: #0c2250; --lg-card: rgba(12, 40, 52, .62); --lg-card-edge: rgba(255, 255, 255, .14); --lg-line: rgba(255, 255, 255, .6);
  background: linear-gradient(135deg, #0b2530 0%, #15424f 50%, #1f5d6b 100%);
}
.lg-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lg-bg i { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .85; }
.lg-bg i:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: 18%; background: radial-gradient(circle, #c7eef6 0%, rgba(199, 238, 246, 0) 70%); }
.lg-bg i:nth-child(2) { width: 52vmax; height: 40vmax; right: -16vmax; top: -10vmax; background: radial-gradient(circle, #d4f3f9 0%, rgba(212, 243, 249, 0) 70%); }
.lg-bg i:nth-child(3) { width: 40vmax; height: 30vmax; left: 22%; bottom: -14vmax; background: radial-gradient(circle, #5a8f9d 0%, rgba(90, 143, 157, 0) 70%); }
:root[data-theme="dark"] .lg-bg i { opacity: .55; }
:root[data-theme="dark"] .lg-bg i:nth-child(1) { background: radial-gradient(circle, #2c7283 0%, rgba(44, 114, 131, 0) 70%); }
:root[data-theme="dark"] .lg-bg i:nth-child(2) { background: radial-gradient(circle, #3b8ea1 0%, rgba(59, 142, 161, 0) 70%); }
:root[data-theme="dark"] .lg-bg i:nth-child(3) { background: radial-gradient(circle, #05141a 0%, rgba(5, 20, 26, 0) 70%); }

.lg-lang { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px;
  border-radius: 999px; background: rgba(12, 34, 80, .34); border: 1px solid var(--lg-card-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lg-lang .material-symbols-outlined { font-size: 18px; opacity: .9; margin-right: 4px; }
.lg-lang-btn { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--lg-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lg-lang-btn[aria-checked="true"] { background: var(--lg-navy); }
.lg-lang-btn:focus-visible, .lg-link:focus-visible, .lg-btn:focus-visible, .lg-check input:focus-visible + .lg-box { outline: 2px solid #fff; outline-offset: 2px; }

.login-screen.lg .lg-card {
  word-spacing: .12em;
  position: relative; width: 380px; max-width: 100%; margin-top: 56px; padding: 76px 36px 32px; border-radius: 4px; gap: 0;
  background: var(--lg-card); border: 1px solid var(--lg-card-edge); color: var(--lg-ink);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); box-shadow: 0 24px 60px rgba(7, 30, 40, .35);
}
.lg-avatar { position: absolute; left: 50%; top: -56px; width: 112px; height: 112px; margin-left: -56px; border-radius: 50%; background: var(--lg-navy);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(5, 14, 40, .45); }
.lg-avatar svg { width: 62px; height: 62px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linejoin: round; }
.lg-title { margin: 0 0 18px; text-align: center; font-size: 18px; font-weight: 600; letter-spacing: .04em; color: var(--lg-ink); }
.lg-card .login-form { display: flex; flex-direction: column; gap: 14px; }
.lg-card .login-form .btn, .lg-card .lg-btn { margin-top: 0; }
.lg-field { position: relative; display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--lg-line); padding: 6px 2px 4px; }
.lg-field:focus-within { border-bottom-color: #fff; box-shadow: 0 2px 0 0 rgba(255, 255, 255, .35); }
.lg-field .material-symbols-outlined { font-size: 22px; color: #fff; flex: 0 0 auto; font-variation-settings: 'FILL' 1; }
.lg-field input { flex: 1 1 auto; min-width: 0; width: 100%; height: 40px; border: 0; background: transparent; box-shadow: none; outline: 0; padding: 0; font: inherit; font-size: 16px; color: #fff; caret-color: #fff; }
.login-screen.lg .lg-field input::placeholder { color: rgba(255, 255, 255, .88) !important; opacity: 1; }
.lg-field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.lg-card .field-input { color: #fff; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; font-size: 13px; }
.lg-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.lg-check input { position: absolute; opacity: 0; width: 22px; height: 22px; }
.lg-box { width: 20px; height: 20px; border-radius: 3px; background: var(--lg-navy); border: 1px solid rgba(255, 255, 255, .5); display: grid; place-items: center; flex: 0 0 auto; }
.lg-box::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.lg-check input:checked + .lg-box::after { opacity: 1; }
.lg-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 13px; font-style: italic; color: rgba(255, 255, 255, .92); text-decoration: none; cursor: pointer; }
.lg-link:hover { text-decoration: underline; color: #fff; }
.lg-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 2px; border: 1.5px solid var(--lg-navy); background: var(--lg-navy); color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .15s, transform .05s; }
.lg-btn:hover { background: var(--lg-navy-hi); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn[disabled] { opacity: .6; cursor: default; }
.lg-btn.lg-ghost { background: transparent; border-color: rgba(255, 255, 255, .85); margin-top: 12px; }
.lg-btn.lg-ghost:hover { background: rgba(255, 255, 255, .14); }
.lg-card .login-error, .lg-error { color: #ffe3e3; background: rgba(120, 20, 30, .42); border: 1px solid rgba(255, 190, 190, .35); border-radius: 3px; padding: 8px 10px; margin: 0; font-size: 13px; text-align: left; }
.lg-note { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 3px; padding: 10px 12px; margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.lg-hint { margin: -6px 0 0; font-size: 12px; opacity: .85; line-height: 1.4; }
.lg-sub { margin: -6px 0 6px; font-size: 14px; text-align: center; opacity: .95; line-height: 1.45; }
.lg-h { margin: 0 0 4px; text-align: center; font-size: 17px; font-weight: 700; }
.lg-back { display: block; margin: 8px auto 0; }
.lg-hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.lg-card .login-step-title { display: flex; align-items: center; gap: 8px; justify-content: center; color: #fff; }
.lg-card .login-step-hint { text-align: center; font-size: 14px; margin: 0; opacity: .95; }
.lg-card .login-trust { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 44px; }
.lg-card .login-links { display: flex; justify-content: space-between; }
.lg-card .login-or { text-align: center; font-size: 12px; opacity: .85; margin: 14px 0 8px; }
.lg-card .login-sso { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .8); min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 2px; text-decoration: none; }
.lg-card .demo-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.lg-card .demo-chips .chip { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); min-height: 32px; cursor: pointer; }
@media (max-width: 600px) {
  .login-screen.lg { padding: 88px 14px 40px; align-items: flex-start; }
  .login-screen.lg .lg-card { width: 100%; padding: 72px 22px 26px; }
  .lg-lang { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lg-btn { transition: none; } }
