/* Raptool sign-in design (v1.13): original dusky misty landscape in CSS/SVG + a frosted-glass card.
   Used by index.html, agent.html, support.html and the Raptool Client app (client/index.html has its own copy). */
.lg-root { position: fixed; inset: 0; overflow: auto; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.lg-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 12% 38%, #f2909f 0%, rgba(242,144,159,0) 70%),
    radial-gradient(ellipse 55% 40% at 88% 18%, #3a2fa6 0%, rgba(58,47,166,0) 72%),
    radial-gradient(ellipse 50% 30% at 70% 45%, #8d4fa6 0%, rgba(141,79,166,0) 75%),
    linear-gradient(180deg, #4b3a96 0%, #8a4f9f 26%, #c8668e 50%, #df8a9b 62%, #8a5a9f 72%, #4a3482 84%, #2c2068 100%); }
.lg-scene svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: block; }
.lg-wrap { position: relative; z-index: 1; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 72px 16px 56px; box-sizing: border-box; }
.lg-card { width: min(420px, 100%); box-sizing: border-box; padding: 30px 36px 28px; border-radius: 24px;
  border: 1px solid rgba(255, 236, 224, .7); background: rgba(36, 16, 76, .68);
  -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%);
  box-shadow: 0 18px 60px rgba(20, 8, 50, .35); }
.lg-card.wide { width: min(460px, 100%); }
.lg-card h1 { margin: 0 0 4px; text-align: center; font-size: 30px; line-height: 1.2; font-weight: 700; color: #fff; letter-spacing: .2px; }
.lg-sub { margin: 0 0 18px; text-align: center; font-size: 14px; color: #fff; opacity: .95; }
.lg-field { position: relative; margin: 0 0 18px; }
.lg-field input, .lg-field select { width: 100%; box-sizing: border-box; background: transparent; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .88); border-radius: 0;
  color: #fff; font: inherit; font-size: 16px; padding: 12px 34px 8px 4px; min-height: 44px; outline: none; }
.lg-field select option { color: #1b1230; }
.lg-field input::placeholder { color: rgba(255, 255, 255, .92); opacity: 1; }
.lg-field input:focus, .lg-field select:focus { border-bottom-color: #ffd9a8; box-shadow: 0 2px 0 0 #ffd9a8; }
.lg-field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.lg-field .ico { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #fff; pointer-events: none; }
.lg-field.err input { border-bottom-color: #ffb4b4; }
.lg-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 16px; font-size: 14px; flex-wrap: wrap; }
.lg-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 32px; }
.lg-row input[type=checkbox] { width: 16px; height: 16px; accent-color: #fff; }
.lg-row .sep { opacity: .8; }
.lg-link { color: #fff; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.lg-link:hover { color: #ffe6c4; }
.lg-btn { display: block; width: 100%; box-sizing: border-box; min-height: 46px; border-radius: 999px; border: 2px solid #fff; background: #fff; color: #2a1458;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; padding: 0 20px; transition: transform .08s, background .15s; }
.lg-btn:hover { background: #fff3e6; border-color: #fff3e6; }
.lg-btn:active { transform: translateY(1px); }
.lg-btn[disabled] { opacity: .7; cursor: default; }
.lg-btn.outline { background: transparent; color: #fff; margin-top: 10px; }
.lg-btn.outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.lg-foot { margin: 16px 0 0; text-align: center; font-size: 14px; }
.lg-foot b { font-weight: 700; }
.lg-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.lg-msg.bad { background: rgba(110, 10, 40, .55); border-color: rgba(255, 190, 190, .7); }
.lg-msg.good { background: rgba(10, 80, 60, .5); border-color: rgba(170, 255, 220, .6); }
.lg-hint { margin: -10px 0 14px; font-size: 12.5px; opacity: .92; }
.lg-hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }
.lg-lang { position: fixed; top: 14px; right: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; color: #fff; padding: 4px 10px 4px 12px; border-radius: 999px;
  background: rgba(41, 20, 82, .55); border: 1px solid rgba(255, 236, 224, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-height: 40px; }
.lg-lang select { background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; min-height: 36px; outline: none; cursor: pointer; padding-right: 4px; }
.lg-lang select option { color: #1b1230; }
.lg-ver { position: fixed; right: 10px; bottom: 6px; z-index: 5; font-size: 10.5px; color: #fff; opacity: .85; text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; }
.lg-brand { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .95; margin: 0 0 8px; }
@media (max-width: 480px) { .lg-card { padding: 26px 22px 24px; } .lg-card h1 { font-size: 26px; } .lg-wrap { padding-top: 64px; } }
@media (prefers-reduced-motion: no-preference) { .lg-mist { animation: lgdrift 40s ease-in-out infinite alternate; } }
@keyframes lgdrift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }

.lg-root label, .lg-root span, .lg-root p, .lg-root h1, .lg-root b { color: #fff; }
.lg-root label { font-weight: 400; margin: 0; }
.lg-root .lg-btn, .lg-root .lg-btn span { color: #2a1458; }
.lg-root .lg-btn.outline, .lg-root .lg-btn.outline span { color: #fff; }
