/* ---------- login: foto do litoral no topo e painel claro com as opções ---------- */
#login { background: var(--surface); }
.lg-hero { position: relative; flex: none; height: clamp(150px, 30%, 300px); border-radius: 0 0 40px 40px; overflow: hidden; color: #fff; isolation: isolate; }
.lg-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0,.35), rgba(0, 0, 0,0) 40%, rgba(0, 0, 0,.55)); }
.lg-top { position: absolute; left: 16px; right: 16px; top: var(--safe-top); display: flex; align-items: center; justify-content: space-between; }
.lg-brand img { border-radius: 0; }
.lg-brand { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 800; font-size: 16px; letter-spacing: -0.3px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#loginBack { color: #fff; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lg-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 16px; }
@media (max-height: 760px) { .lg-hero { height: 22%; } .lg-social { gap: 8px; } .lg-soc { min-height: 46px; } .lg-body { gap: 12px; } }
.lg-title { display: flex; flex-direction: column; gap: 6px; }
.lg-title .sub { font-size: 15px; }
.lg-social { display: flex; flex-direction: column; gap: 10px; }
.lg-soc { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid #D4D4D9; background: var(--surface); font-size: 15px; font-weight: 600; transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .2s; }
.lg-soc:hover { background: var(--fill); }
.lg-soc:active { transform: scale(.97); }
.lg-soc.apple { background: var(--ink); border-color: var(--ink); color: #fff; }
.lg-soc.busy { opacity: .7; pointer-events: none; }
.lg-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sec); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lg-form { display: flex; flex-direction: column; gap: 12px; }
.lg-field { border-radius: 999px; padding: 0 18px; }
.lg-field:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.lg-err { font-size: 13px; color: #C4302B; padding-left: 18px; }
.lg-hint { font-size: 13px; color: var(--sec); text-align: center; }
.lg-hint .text-btn { color: var(--brand); font-weight: 600; }
.lg-forgot { align-self: center; font-size: 15px; }
.lg-who { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: var(--fill); align-self: flex-start; max-width: 100%; }
.lg-who span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lg-who strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-who small { font-size: 12px; color: var(--sec); }
.lg-av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.lg-av.new { background: var(--brand-soft); color: var(--brand); }
.lg-hint .text-btn { border: 0; background: none; min-height: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* fotos da região passando, com legenda */
.lg-slides { position: absolute; inset: 0; z-index: -2; }
.lg-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.lg-slide.on { opacity: 1; }
.lg-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s ease-out; }
.lg-slide.on img { transform: scale(1); }
.lg-slide figcaption { position: absolute; left: 22px; right: 22px; bottom: 34px; display: flex; flex-direction: column; gap: 2px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); opacity: 0; transform: translateY(10px); transition: opacity .6s .4s, transform .6s .4s cubic-bezier(.2, .8, .2, 1); }
.lg-slide.on figcaption { opacity: 1; transform: none; }
.lg-slide strong { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.lg-slide span { font-size: 13px; opacity: .92; }
.lg-dots { position: absolute; left: 22px; bottom: 16px; display: flex; gap: 5px; z-index: 1; }
.lg-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.lg-dots i.on { width: 20px; background: #fff; }
/* bordas limpas: a foto fica recortada pelo cartão (camada própria), e o degradê fica embaixo da legenda */
.lg-hero { -webkit-mask-image: -webkit-radial-gradient(white, black); clip-path: inset(0 round 0 0 40px 40px); }
.lg-hero::after { display: none; }
.lg-slides { overflow: hidden; border-radius: inherit; }
.lg-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 35%, rgba(0,0,0,0) 50%, rgba(0,0,0,.65)); }
.lg-slide figcaption { z-index: 1; }
.lg-hero { height: clamp(220px, 36%, 340px); }
/* login no celular: foto como cartão logo abaixo da barra de status (mesmo respiro das outras telas),
   ocupando o espaço que sobra; os botões ficam todos embaixo, sem buraco */
#login .lg-hero { flex: 1 1 auto; height: auto; min-height: 200px; margin: calc(var(--safe-top) - 10px) 12px 0; border-radius: 32px; clip-path: inset(0 round 32px); }
#login .lg-top { top: 14px; left: 14px; right: 14px; }
#login .lg-body { flex: none; overflow: visible; justify-content: flex-end; padding-top: 22px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
