.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);padding:1rem}.login-card{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:24px;padding:3rem 2.5rem;width:100%;max-width:420px;box-shadow:0 25px 50px -12px #00000080;border:1px solid rgba(255,255,255,.1)}.login-header{text-align:center;margin-bottom:2.5rem}.traffic-light-icon{width:50px;height:120px;background:#2d2d2d;border-radius:12px;margin:0 auto 1.5rem;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding:8px 0;box-shadow:inset 0 2px 10px #00000080}.traffic-light-icon .light{width:30px;height:30px;border-radius:50%;box-shadow:0 0 20px currentColor}.traffic-light-icon .light.red{background:radial-gradient(circle at 30% 30%,#ff6b6b,#e63946);color:#e63946}.traffic-light-icon .light.yellow{background:radial-gradient(circle at 30% 30%,#ffd93d,#f9c74f);color:#f9c74f}.traffic-light-icon .light.green{background:radial-gradient(circle at 30% 30%,#6bcb77,#2d6a4f);color:#2d6a4f}.login-header h1{font-size:2rem;font-weight:700;color:#fff;margin:0 0 .5rem;letter-spacing:2px}.login-header p{color:#fff9;font-size:1rem;margin:0}.login-form{display:flex;flex-direction:column;gap:1.5rem}.input-group{display:flex;flex-direction:column;gap:.5rem}.input-group label{color:#fffc;font-size:.875rem;font-weight:500}.input-group input{background:#ffffff1a;border:2px solid rgba(255,255,255,.1);border-radius:12px;padding:1rem 1.25rem;font-size:1rem;color:#fff;transition:all .3s ease;outline:none}.input-group input::placeholder{color:#fff6}.input-group input:focus{border-color:#6bcb77;background:#ffffff26;box-shadow:0 0 0 4px #6bcb7733}.input-group input:disabled{opacity:.6;cursor:not-allowed}.error-message{background:#e6394633;border:1px solid rgba(230,57,70,.5);border-radius:8px;padding:.75rem 1rem;color:#ff6b6b;font-size:.875rem;text-align:center}.login-form button{background:linear-gradient(135deg,#6bcb77,#2d6a4f);border:none;border-radius:12px;padding:1rem 1.5rem;font-size:1rem;font-weight:600;color:#fff;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:56px}.login-form button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 30px #6bcb774d}.login-form button:active:not(:disabled){transform:translateY(0)}.login-form button:disabled{opacity:.6;cursor:not-allowed}.loading-spinner{width:24px;height:24px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.login-footer{margin-top:2rem;text-align:center}.login-footer p{color:#fff6;font-size:.75rem;margin:0}@media(max-width:480px){.login-card{padding:2rem 1.5rem;border-radius:16px}.login-header h1{font-size:1.5rem}.traffic-light-icon{width:40px;height:100px}.traffic-light-icon .light{width:24px;height:24px}}.traffic-panel{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:24px;padding:1.5rem;border:1px solid rgba(255,255,255,.1);transition:all .3s ease}.traffic-panel:hover{background:#ffffff14}.traffic-panel.disabled{opacity:.5;pointer-events:none}.traffic-panel.pending{border-color:#f9c74f80;box-shadow:0 0 20px #f9c74f1a}.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.panel-header h2{color:#fff;font-size:1.25rem;font-weight:600;margin:0}.module-status{font-size:.75rem;font-weight:600;padding:.25rem .75rem;border-radius:20px;text-transform:uppercase;letter-spacing:1px}.module-status.alive{background:#6bcb7733;color:#6bcb77}.module-status.dead{background:#e6394633;color:#e63946}.traffic-light-visual{display:flex;justify-content:center;align-items:flex-end;gap:1.5rem;margin-bottom:1.5rem;padding:1.5rem 0}.traffic-light-body{width:80px;background:linear-gradient(180deg,#3d3d3d,#2d2d2d);border-radius:16px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:inset 0 2px 10px #00000080,0 10px 30px #0000004d}.pedestrian-light{width:60px;background:linear-gradient(180deg,#3d3d3d,#2d2d2d);border-radius:12px;padding:10px;display:flex;justify-content:center;box-shadow:inset 0 2px 10px #00000080,0 10px 30px #0000004d}.light{width:56px;height:56px;border-radius:50%;background:#1a1a1a;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;transition:all .3s ease;box-shadow:inset 0 2px 8px #0009}.pedestrian-light .light{width:40px;height:40px}.pedestrian-light .light svg{width:24px;height:24px;color:#fff3;transition:all .3s ease}.light:hover{transform:scale(1.05)}.light.red.on{background:radial-gradient(circle at 30% 30%,#ff6b6b,#e63946);box-shadow:0 0 30px #e63946cc,0 0 60px #e6394666,inset 0 -2px 8px #0000004d}.light.yellow.on{background:radial-gradient(circle at 30% 30%,#ffd93d,#f9c74f);box-shadow:0 0 30px #f9c74fcc,0 0 60px #f9c74f66,inset 0 -2px 8px #0000004d}.light.green.on{background:radial-gradient(circle at 30% 30%,#6bcb77,#2d6a4f);box-shadow:0 0 30px #6bcb77cc,0 0 60px #6bcb7766,inset 0 -2px 8px #0000004d}.light.pedestrian.on{background:radial-gradient(circle at 30% 30%,#fff,#ccc);box-shadow:0 0 20px #fffc,0 0 40px #fff6,inset 0 -2px 8px #0000004d}.light.pedestrian.on svg{color:#1a1a2e}.light.fault{border:2px solid #e63946;animation:fault-pulse 1.5s ease-in-out infinite}.fault-icon{position:absolute;top:-6px;right:-6px;width:18px;height:18px;background:#e63946;border-radius:50%;font-size:12px;font-weight:700;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #e6394680}@keyframes fault-pulse{0%,to{border-color:#e63946}50%{border-color:#e6394666}}.controls{display:flex;flex-direction:column;gap:.75rem}.control-row{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#0003;border-radius:12px;transition:all .2s ease}.control-row:hover{background:#0000004d}.control-row.has-fault{background:#e639461a;border:1px solid rgba(230,57,70,.3)}.control-label{color:#ffffffe6;font-weight:500;font-size:.9rem}.fault-badge{background:#e639464d;color:#ff6b6b;font-size:.65rem;font-weight:700;padding:.2rem .5rem;border-radius:4px;text-transform:uppercase;letter-spacing:.5px;margin-left:auto;margin-right:.75rem}.switch{position:relative;display:inline-block;width:52px;height:28px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background:#ffffff1a;transition:all .3s ease;border-radius:28px}.slider:before{position:absolute;content:"";height:22px;width:22px;left:3px;bottom:3px;background:#fff;transition:all .3s ease;border-radius:50%;box-shadow:0 2px 8px #0000004d}input:checked+.slider{background:#ffffff4d}input:checked+.slider.red{background:#e63946}input:checked+.slider.yellow{background:#f9c74f}input:checked+.slider.green{background:#2d6a4f}input:checked+.slider.pedestrian{background:#fff}input:checked+.slider.pedestrian:before{background:#1a1a2e}input:checked+.slider:before{transform:translate(24px)}input:disabled+.slider{cursor:not-allowed;opacity:.5}.fault-warning{margin-top:1rem;padding:.75rem 1rem;background:#e6394626;border:1px solid rgba(230,57,70,.3);border-radius:10px;display:flex;align-items:center;gap:.5rem;color:#ff6b6b;font-size:.85rem;font-weight:500}@media(max-width:480px){.traffic-panel{padding:1.25rem}.traffic-light-body{width:70px}.light{width:48px;height:48px}.pedestrian-light{width:50px}.pedestrian-light .light{width:36px;height:36px}}.status-header{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}.status-card{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:1.25rem;border:1px solid rgba(255,255,255,.1);transition:all .3s ease}.status-card:hover{background:#ffffff14;transform:translateY(-2px)}.status-card.main-status{display:flex;flex-direction:column;gap:.5rem}.status-indicator{display:flex;align-items:center;gap:.5rem}.status-dot{width:12px;height:12px;border-radius:50%;animation:pulse-dot 2s ease-in-out infinite}.status-indicator.online .status-dot{background:#6bcb77;box-shadow:0 0 12px #6bcb77}.status-indicator.offline .status-dot{background:#e63946;box-shadow:0 0 12px #e63946;animation:none}@keyframes pulse-dot{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(.9)}}.status-text{font-size:1.125rem;font-weight:700;color:#fff}.status-indicator.online .status-text{color:#6bcb77}.status-indicator.offline .status-text{color:#e63946}.status-ip{font-size:.875rem;color:#ffffff80;font-family:Monaco,Consolas,monospace}.status-label{font-size:.75rem;color:#ffffff80;text-transform:uppercase;letter-spacing:1px;margin-bottom:.5rem}.status-value{font-size:1.25rem;font-weight:600;color:#fff}.status-value.time{font-family:Monaco,Consolas,monospace;font-size:1rem}.modules-count{display:flex;align-items:baseline;gap:.25rem}.count-alive{color:#6bcb77;font-size:1.5rem}.count-separator{color:#ffffff4d}.count-total{color:#fff9;font-size:1rem}@media(max-width:640px){.status-header{grid-template-columns:repeat(2,1fr)}.status-card{padding:1rem}.status-value{font-size:1rem}.count-alive{font-size:1.25rem}}.dashboard{min-height:100vh;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);display:flex;flex-direction:column}.dashboard-header{background:#0000004d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.1);padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:100}.header-left,.logo{display:flex;align-items:center;gap:1rem}.mini-traffic-light{background:#2d2d2d;border-radius:8px;padding:6px;display:flex;flex-direction:column;gap:4px}.mini-traffic-light .dot{width:12px;height:12px;border-radius:50%}.mini-traffic-light .dot.red{background:#e63946;box-shadow:0 0 8px #e63946}.mini-traffic-light .dot.yellow{background:#f9c74f;box-shadow:0 0 8px #f9c74f}.mini-traffic-light .dot.green{background:#2d6a4f;box-shadow:0 0 8px #2d6a4f}.logo-text h1{font-size:1.25rem;font-weight:700;color:#fff;margin:0;letter-spacing:1px}.device-id{font-size:.75rem;color:#ffffff80;font-family:Monaco,Consolas,monospace}.header-right{display:flex;align-items:center;gap:.75rem}.refresh-btn{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:.5rem;color:#fff;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.refresh-btn:hover{background:#fff3;transform:rotate(180deg)}.logout-btn{background:#e6394633;border:1px solid rgba(230,57,70,.5);border-radius:10px;padding:.5rem 1.25rem;color:#ff6b6b;cursor:pointer;font-weight:500;transition:all .2s ease}.logout-btn:hover{background:#e6394666}.dashboard-main{flex:1;padding:2rem;max-width:1200px;margin:0 auto;width:100%}.loading-state,.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:4rem 2rem;color:#fff}.spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.2);border-top-color:#6bcb77;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-state{background:#e639461a;border-radius:16px;border:1px solid rgba(230,57,70,.3)}.error-state button{background:#e639464d;border:1px solid rgba(230,57,70,.5);border-radius:8px;padding:.75rem 1.5rem;color:#fff;cursor:pointer;transition:all .2s ease}.error-state button:hover{background:#e6394680}.traffic-lights-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;margin-top:2rem}@media(max-width:768px){.traffic-lights-grid{grid-template-columns:1fr;gap:1.5rem}}.pending-indicator{position:fixed;bottom:2rem;right:2rem;background:#f9c74fe6;color:#1a1a2e;padding:.75rem 1.25rem;border-radius:50px;display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:.875rem;box-shadow:0 10px 30px #f9c74f4d;animation:pulse 1.5s ease-in-out infinite}.pending-dot{width:10px;height:10px;background:#1a1a2e;border-radius:50%;animation:blink .5s ease-in-out infinite alternate}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes blink{0%{opacity:.3}to{opacity:1}}@media(max-width:640px){.dashboard-header,.dashboard-main{padding:1rem}.logo-text h1{font-size:1rem}.pending-indicator{bottom:1rem;right:1rem;left:1rem;justify-content:center}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;color:#fff;background:#1a1a2e;min-height:100vh;overflow-x:hidden}#root{min-height:100vh}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#ffffff0d}::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff4d}::selection{background:#6bcb774d;color:#fff}input,button{font-family:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .3s ease-out}
