/* Sign-in page (firebase-landing.html → lofidawn.com/index.html). Loaded after /ld.css.
   A file rather than a <style> block: the CSP on lofidawn.com allows no inline styles (no style="" attributes either). */
[hidden] { display: none !important; }
body {
    /* ld.css reserves 248px on the left for the sidebar; this page has none, so it would centre the card 124px right of the middle */
    margin-left: 0 !important;
    display: flex; flex-direction: column;
    background: radial-gradient(900px 460px at 50% -140px, var(--accent-soft), transparent 70%), var(--bg);
}
.auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem 1rem; }
h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-bright); }
.sub { margin: .3rem 0 1.5rem; font-size: .86rem; color: var(--text-muted); }

/* Brand: same mark as the sidebar */
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-name { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; color: var(--text-bright); }
.brand-sub { margin-left: .15rem; padding-left: .6rem; border-left: 1px solid var(--border); font-size: .76rem; color: var(--text-muted); }

/* Sign-in card */
.auth-card {
    width: min(400px, 100%); padding: 2rem 2rem 1.6rem;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.auth-card .brand { margin-bottom: 1.9rem; }
.google { width: 100%; height: 42px; gap: .65rem; font-weight: 600; }
.google svg { width: 18px; height: 18px; }
.error { min-height: 1.25rem; margin-top: .75rem; font-size: .8rem; color: var(--red); text-align: center; }
.fine { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--border2); font-size: .75rem; color: var(--text-muted); }
.loading { display: flex; align-items: center; gap: .65rem; padding: 1.4rem 0 1.2rem; font-size: .86rem; color: var(--text-muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tools (after sign-in, when there is no page to return to) */
.portal { width: min(960px, 100%); align-self: flex-start; }
.portal-top { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--border); }
.portal-top .brand { margin-right: auto; }
.user { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.user img { width: 30px; height: 30px; border-radius: 50%; background: var(--bg3); }
.user-name { font-size: .82rem; font-weight: 600; color: var(--text-bright); line-height: 1.3; }
.user-email { font-size: .74rem; color: var(--text-muted); line-height: 1.3; }
.hello { font-size: 1.6rem; }
.portal .sub { margin-bottom: 1.25rem; }
.featured {
    display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; margin-bottom: .5rem;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: border-color .15s;
}
.featured:hover { border-color: var(--accent); }
.featured .tile-ic { width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent-text); }
.featured-name { display: block; font-weight: 600; color: var(--text-bright); }
.featured-sub { display: block; font-size: .8rem; color: var(--text-muted); }
.featured-go { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: .6rem; }
.tile {
    display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .65rem .75rem;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s;
}
.tile:hover { border-color: var(--accent); }
.tile-ic { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: var(--bg3); color: var(--text-dim); transition: color .15s, background .15s; }
.tile:hover .tile-ic { background: var(--accent-soft); color: var(--accent-text); }
.tile-ic .ld-ic { width: 17px; height: 17px; }
.tile-txt { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-size: .85rem; font-weight: 600; color: var(--text-bright); }
.tile-host { overflow: hidden; font: .7rem var(--font-mono); color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; }

/* Footer: colour mode (shared with every LofiDawn site) */
.auth-foot { display: flex; align-items: center; justify-content: center; gap: .9rem; padding: 1.25rem; font-size: .74rem; color: var(--text-muted); }
.ld-modes button { border: 0; font: inherit; cursor: pointer; }
.ld-modes button:not([aria-pressed="true"]) { background: none; }
.ld-modes button:hover { color: var(--text-bright); }

@media (max-width: 640px) {
    .auth-card { padding: 1.6rem 1.25rem 1.3rem; }
    .user-txt, .brand-sub { display: none; }
    .featured-go { display: none; }
}
