/* Ecrã de entrada e conta */
#entrar { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow-y: auto; display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); }
#entrar[hidden] { display: none; }
.entrar-caixa { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.entrar-sub { margin: 0; color: var(--muted); }
#eForm { display: flex; flex-direction: column; gap: 14px; }
#eForm label[hidden] { display: none; }
#entrar .campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
#entrar input { font: 400 16px var(--body); padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
#eBtn { font: 600 15px var(--body); background: var(--accent); color: var(--surface); border: 0; border-radius: 8px; padding: 12px 16px; cursor: pointer; }
#eBtn:disabled { opacity: .6; }
.btn-social { width: 100%; font: 600 15px var(--body); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px; cursor: pointer; margin-bottom: 8px; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.ou::before, .ou::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.entrar-alt { margin: 0; text-align: center; }
.entrar-alt[hidden], .ligacao[hidden] { display: none; }
.ligacao { font: inherit; font-size: 14px; background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; padding: 4px; }
.entrar-legal { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.entrar-legal a { color: inherit; }
.btn-conta { font: 500 14px var(--body); background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.btn-perigo { font: 600 14px var(--body); background: var(--crit-soft); color: var(--crit); border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.ajuda { font-size: 13px; color: var(--muted); margin: 0; }
button.btn-alerta.btn-alerta-destaque { width: 100%; padding: 11px 14px; font-size: 15px; background: var(--accent); color: var(--surface); }
button.btn-alerta.btn-alerta-destaque:hover { border-color: transparent; opacity: .92; }
@media (max-width: 820px) { aside.filters .btn-alerta-destaque { grid-column: 1 / -1; } }
.tema-opcoes { display: flex; gap: 18px; flex-wrap: wrap; }
#entrar .pass { position: relative; display: flex; }
#entrar .pass input { flex: 1; min-width: 0; padding-right: 92px; }
#entrar .olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 600 13px var(--body); background: none; border: 0; color: var(--accent); padding: 8px 10px; cursor: pointer; }
#entrar label.campo[hidden] { display: none; }

/* Cabeçalho verde da marca (igual às imagens do Instagram) */
:root { --topo: #0b6b4c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --topo: #0d3d2d; } }
:root[data-theme="dark"] { --topo: #0d3d2d; }
html body::before { background: var(--topo); }
html header.top { background: var(--topo); border-bottom-color: transparent; color: #fff; }
html header.top .brand { color: #fff; }
html header.top .brand .mark { background: #fff; color: #0b6b4c; }
html header.top .tabs { background: rgba(255,255,255,.12); border-color: transparent; }
html header.top .tabs button { color: rgba(255,255,255,.85); }
html header.top .tabs button[aria-selected="true"] { background: #fff; color: #0b6b4c; box-shadow: none; }
html header.top .search input { background: #fff; color: #14211c; border-color: transparent; }
html header.top .search input::placeholder { color: #6b7a73; }
html header.top button:focus-visible, html header.top input:focus-visible { outline-color: #fff; }
html header.top .btn-conta { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
html header.top .btn-conta:hover { background: rgba(255,255,255,.12); }

/* Entrada opcional: só aparece ao criar alertas ou guardar concursos */
#entrar { background: rgba(10, 20, 16, .55); }
.entrar-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entrar-topo .ligacao { padding: 6px 4px; }
.partilha-opcoes { display: flex; gap: 10px; flex-wrap: wrap; }
#sheet button.cta.btn-partilhar, #sheet .partilha-opcoes .cta { font: 600 15px var(--body); cursor: pointer; border: 0; background: var(--accent-soft); color: var(--accent); }
/* Três separadores: no telemóvel deslizam na horizontal */
header.top .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
header.top .tabs::-webkit-scrollbar { display: none; }
