/* Login-portal look: dark backdrop photo, frosted centered panel. Tokens mirror
   rocket-login-portal/src/styles/global.css. */
:root {
    --bg: #0b0f14;
    --panel: rgba(15, 23, 32, 0.72);
    --text: #dbe7ff;
    --muted: #8aa0b6;
    --brand: #005596;
    --brand-600: #2786B5;
    --accent: #FDB813;
    --line: rgba(255, 255, 255, 0.12);
    --overlay: rgba(0, 0, 0, 0.55);
    --card: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    --shadow: rgba(0, 0, 0, 0.25);
    --panel-hover: rgba(15, 23, 32, 0.9);
}

:root[data-theme="light"] {
    --bg: #f4f7fb;
    --panel: rgba(255, 255, 255, 0.8);
    --text: #0f1720;
    --muted: #5b6b7c;
    --line: rgba(15, 23, 32, 0.14);
    --overlay: rgba(12, 16, 24, 0.22);
    --card: linear-gradient(180deg, rgba(15, 23, 32, 0.04), rgba(15, 23, 32, 0.02));
    --shadow: rgba(15, 23, 32, 0.12);
    --panel-hover: rgba(255, 255, 255, 0.95);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image: linear-gradient(var(--overlay), var(--overlay)), url('/assets/img/backdrop.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
    font: 14px/1.5 "Poppins", -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
}

.backdrop {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.panel {
    width: min(420px, 100%);
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background-color: var(--panel);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px var(--shadow);
    text-align: center;
}

.logo {
    width: 220px;
    max-width: 80%;
    margin-bottom: 8px;
}

h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.muted {
    margin: 4px 0 20px;
    color: var(--muted);
}

.links {
    display: grid;
    gap: 10px;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    text-align: left;
    text-decoration: none;
    transition: 160ms ease;
}

.link-card:hover {
    border-color: rgba(39, 134, 181, 0.6);
    background: linear-gradient(180deg, rgba(0, 85, 150, 0.22), rgba(0, 85, 150, 0.10));
    box-shadow: inset 0 0 0 1px rgba(0, 85, 150, 0.35), 0 6px 18px rgba(0, 85, 150, 0.18);
}

.link-title {
    font-weight: 600;
}

.link-sub {
    font-size: 12px;
    color: var(--muted);
}

/* Same chrome as the login portal's toggle: a frosted 28px icon button pinned top-right. */
.theme-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background-color: var(--panel);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--brand);
    cursor: pointer;
}

.theme-toggle:hover { background-color: var(--panel-hover); }
