/* MustHost Webmail — identidade visual sobre o Bulwark (AGPL-3.0). Mesmas cores e fonte do site:
   fundo #050A1C, superfícies #0B1329, linhas #1E2A4A, royal #1D4ED8 em botões, acento #7FA6FF, Inter. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/mh/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/mh/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

html { --font-sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
html body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-feature-settings: 'cv11', 'ss01'; }

/* ---------- claro (quem escolher) ---------- */
html {
  --brand-primary: #1D4ED8;
  --brand-primary-foreground: #FFFFFF;
  --brand-accent: #E6EEFF;
  --brand-accent-foreground: #1E40AF;
  --color-ring: #1D4ED8;
  --color-selection: #1D4ED829;
  --color-selection-foreground: #1E40AF;
}

/* ---------- escuro (padrão) ---------- */
html.dark {
  --brand-dark-primary: #1D4ED8;
  --brand-dark-primary-foreground: #FFFFFF;
  --brand-dark-accent: #16285A;
  --brand-dark-accent-foreground: #DCE6FF;
  --color-background: #050A1C;
  --color-foreground: #E3E9F7;
  --color-card: #0B1329;
  --color-card-foreground: #E3E9F7;
  --color-popover: #101B38;
  --color-popover-foreground: #E3E9F7;
  --color-secondary: #101B38;
  --color-secondary-foreground: #E3E9F7;
  --color-muted: #0E1733;
  --color-muted-foreground: #8C9AC0;
  --color-border: #1E2A4A;
  --color-input: #22305A;
  --color-ring: #7FA6FF;
  --color-sidebar: #050A1C;
  --color-sidebar-foreground: #DCE3F5;
  --color-sidebar-border: #1E2A4A;
  --color-sidebar-accent: #101B38;
  --color-sidebar-accent-foreground: #FFFFFF;
  --color-selection: #1D4ED84D;
  --color-selection-foreground: #A9C2FF;
  --color-destructive: #EF4444;
  --color-success: #22C55E;
  background-color: #050A1C;
  color-scheme: dark;
}
html.dark ::selection { background: #1D4ED880; color: #FFFFFF; }
html.dark a { color: inherit; }
html.dark ::-webkit-scrollbar-thumb { background: #22305A; border-radius: 8px; }
html.dark ::-webkit-scrollbar-track { background: transparent; }

/* ---------- tela de login: fundo do site (nebulosa + pontos) ---------- */
img[src^="/mh/logo-"] { width: 230px !important; max-width: 70vw !important; height: auto !important; max-height: none !important; }
html.dark body:has(img[src^="/mh/logo-"]) {
  background:
    radial-gradient(900px 520px at 12% -8%, #1D4ED861, transparent 62%),
    radial-gradient(760px 480px at 108% 108%, #7FA6FF29, transparent 60%),
    radial-gradient(#7FA6FF21 1px, transparent 1px) 0 0 / 26px 26px,
    #050A1C;
  background-attachment: fixed;
}
html.dark body:has(img[src^="/mh/logo-"]) > div,
html.dark body:has(img[src^="/mh/logo-"]) main { background: transparent !important; }
