:root{color-scheme:dark;font-family:Inter,system-ui,sans-serif;background:#0f172a;color:#e2e8f0;line-height:1.6}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;justify-content:center;align-items:center;padding:1.5rem;background-size:cover;background-position:center;background-attachment:fixed;background-repeat:no-repeat;transition:background-image .4s ease}.auth-screen{width:min(100%,400px)}.auth-container{background:radial-gradient(circle at top,rgba(96,165,250,.18),transparent 42%),#020617;border:1px solid rgba(148,163,184,.12);border-radius:24px;padding:2rem;box-shadow:0 24px 70px #0f172a40}.auth-container h1{text-align:center;margin-bottom:.5rem}.auth-subtitle{text-align:center;color:#94a3b8;margin-bottom:2rem;font-size:.9rem}.auth-form{display:flex;flex-direction:column;gap:1rem;margin-bottom:1rem}.auth-form h2{margin:0 0 1rem;font-size:1.5rem}.auth-form input{border:1px solid rgba(148,163,184,.24);border-radius:8px;padding:.9rem 1rem;background:#94a3b80f;color:inherit;font-size:1rem}.auth-form input:focus{outline:none;border-color:#2563eb;background:#2563eb1a}.auth-btn{border:none;border-radius:8px;background:#2563eb;color:#fff;padding:.9rem;cursor:pointer;font-size:1rem;transition:background .2s ease}.auth-btn:hover{background:#1d4ed8}.auth-toggle{text-align:center;color:#94a3b8;font-size:.9rem;margin:0}.auth-toggle a{color:#2563eb;text-decoration:none;cursor:pointer}.auth-toggle a:hover{text-decoration:underline}.auth-status{min-height:1.5rem;color:#94a3b8;text-align:center;margin-top:1rem}.auth-status.error{color:#f87171}body.app-active{display:block;padding:0;align-items:initial;justify-content:initial}.app{position:relative;min-height:100vh;overflow:hidden}.app.hidden{display:none}.app-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;background:linear-gradient(160deg,#4fc3f7,#1565c0 55%,#0d47a1);transition:background .7s ease}.app-content{position:relative;z-index:1;max-width:520px;margin:0 auto;padding:18px 16px 56px;min-height:100vh;box-sizing:border-box}.header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;flex-wrap:wrap}.header h1{margin:0;font-size:26px;font-weight:800;color:#fff;letter-spacing:-.5px}.app-content h3{margin:0 0 12px}.user-info{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.user-email{color:#ffffffb3;font-size:11px}.logout-btn{border:1px solid rgba(255,255,255,.22);border-radius:8px;background:#ffffff24;color:#fff;padding:8px 14px;cursor:pointer;transition:background .2s ease;font-size:12px;font-weight:600}.logout-btn:hover{background:#ffffff3d}.search{display:flex;gap:8px;margin-bottom:10px}.search input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.22);border-radius:10px;padding:13px 14px;background:#ffffff24;color:#fff;font-size:14px;outline:none}.search input::placeholder{color:#fff9}.search input:focus{border-color:#ffffff80}.search button{border:none;border-radius:10px;background:#1565c0;color:#fff;padding:0 18px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .2s ease}.search button:hover{background:#0d47a1}.locate-btn{width:100%;background:#ffffff24;border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:10px;padding:13px 14px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;margin-bottom:22px;transition:background .2s ease}.locate-btn:hover{background:#ffffff38}.locate-btn.tracking{background:#ef535038;border-color:#ef535066}.favorites.hidden{display:none}.favorites h3{margin:0 0 8px;font-size:12px;font-weight:700;color:#fffc;text-transform:uppercase;letter-spacing:.6px}.favorites-list{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px}.favorite-item{min-width:92px;padding:10px 12px;border-radius:14px;cursor:pointer;flex-shrink:0;background:#ffffff24;border:1px solid rgba(255,255,255,.2);transition:all .2s ease}.favorite-item.active{background:#1565c0d9;border-color:#ffffff80}.favorite-item-top{display:flex;align-items:center;gap:6px}.favorite-btn{background:none;border:none;padding:0;font-size:12px;font-weight:600;color:#fff;cursor:pointer;text-align:left}.remove-favorite-btn{background:none;border:none;padding:0;color:#ffffff8c;font-size:13px;line-height:1;cursor:pointer}.favorite-item-weather{font-size:15px;color:#fff;margin-top:4px}.alert-banner{background:#fdeceaf5;color:#c62828;border-radius:10px;padding:12px 14px;margin:14px 0 0;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.alert-banner.hidden{display:none}.status{min-height:1.2rem;text-align:center;font-size:11px;color:#fff6;margin-top:18px}.status.error{color:#ffcdd2}.weather.hidden{display:none}.weather-header{display:flex;align-items:flex-start;justify-content:space-between;margin-top:22px}.weather-header h2{margin:0;font-size:24px;font-weight:800;color:#fff}.country{font-size:13px;color:#ffffffb3;margin:2px 0 0}.save-favorite-btn{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;flex-shrink:0;background:#ffffff26;color:#fff;border:1px solid rgba(255,255,255,.25);transition:all .2s ease}.save-favorite-btn.saved{background:#ffffffe6;color:#f9a825}.current{display:flex;align-items:center;gap:14px;margin:16px 0 4px}.icon{font-size:60px;line-height:1}.temperature{font-size:68px;font-weight:800;color:#fff;letter-spacing:-2px}.description{font-size:16px;color:#ffffffe0;margin:0}.feels-like-line{font-size:13px;color:#fff9;margin:2px 0 0}.stats-card,.sun-card,.forecast-card,.map-section{background:#fff;border-radius:14px;border:1px solid #e8eaed;margin-top:20px;overflow:hidden}.sun-card,.forecast-card,.map-section{margin-top:14px}.stats-card{padding:16px 18px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat-label{font-size:10px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.5px}.stat-value{font-size:18px;font-weight:700;color:#111;margin-top:4px}.sun-card{padding:16px 18px;display:flex;align-items:center;justify-content:space-between}.sun-item{display:flex;align-items:center;gap:10px}.sun-icon{font-size:22px}.sun-value{font-size:15px;font-weight:700;color:#111}.forecast-card{padding:16px 18px 14px}.forecast-card h3{font-size:14px;font-weight:700;color:#111}.hourly-list{display:flex;gap:20px;overflow-x:auto;padding:0 0 4px;margin:0;list-style:none;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.hourly-item{display:flex;flex-direction:column;align-items:center;gap:6px;flex-shrink:0}.hourly-time{font-size:11px;color:#888;font-weight:600}.hourly-icon{font-size:22px}.hourly-temp{font-size:13px;font-weight:700;color:#111}.forecast{margin:0;padding:0;list-style:none}.forecast li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f2f2f2}.forecast li:last-child{border-bottom:none}.forecast-day{width:76px;font-size:13px;font-weight:600;color:#222;flex-shrink:0}.forecast-icon{font-size:19px}.forecast-low{flex:1;text-align:right;font-size:13px;color:#999}.forecast-high{width:36px;text-align:right;font-size:13px;font-weight:700;color:#111}.hidden{display:none!important}.map-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:16px 18px 0;flex-wrap:wrap}.map-header h3{font-size:14px;font-weight:700;color:#111;margin:0}.map-coords{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.75rem;color:#666;background:#f2f2f2;padding:.25rem .6rem;border-radius:6px}.map{height:260px;width:100%;margin-top:12px}.map-accuracy{margin:0;padding:8px 18px 14px;font-size:.8rem;color:#888;text-align:right}
