/* doorman — what the theme API cannot say: fonts, the page ground,
   the login card. Served at /auth/v1/brand/brand.css on every page,
   after the client's theme (patches/0001-brand-ui.patch); <html
   data-client> names the client the page is for, so a brand is a
   selector here and its colours stay in branding/<client>.json. The
   winkylabs llc look is the default; another client opts out of it by
   name (drumpy and vision wholly). The card rules are scoped to the
   login page (.outer); the account and admin pages reuse the class name
   .container. */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-display-700-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/roboto-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/PressStart2P-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'VT323';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/VT323-Regular.woff2') format('woff2');
}

/* ---- every client: the card's own colour, where Rauthy paints the
   page's (the "or login with" mask, the inputs) ---- */

.outer .container .loginWith > div {
    background: var(--card, hsl(var(--bg)));
}

/* ---- winkylabs llc (the rauthy client and every unbranded one) ---- */

html:not([data-client='drumpy'], [data-client='vision']) body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

html:not([data-client='drumpy'], [data-client='vision']) body:not(.theme-dark) {
    background-image: url('rauthy/texture.png');
}

html:not([data-client='drumpy'], [data-client='vision']) :is(h1, h2, h3) {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

/* The login card is the site's .content-wrapper: white paper with a
   soft shadow on the textured ground. The page veil goes, or the
   texture reads as dirt. */
html:not([data-client='drumpy'], [data-client='vision']) .outer {
    background: transparent;
}

html:not([data-client='drumpy'], [data-client='vision']) body:not(.theme-dark) .outer .container {
    --card: #ffffff;
    background: var(--card);
    border: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html:not([data-client='drumpy'], [data-client='vision']) body:not(.theme-dark) .outer .container input {
    background: var(--card);
}

/* ---- drumpy: the app's card and system face (drumpy/css/drumpy.css) ---- */

html[data-client='drumpy'] body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html[data-client='drumpy'] .outer .container {
    border-radius: 16px;
}

html[data-client='drumpy'] body.theme-dark .outer .container {
    --card: #1a1a22;
    background: var(--card);
}

html[data-client='drumpy'] body:not(.theme-dark) .outer .container {
    --card: #ffffff;
    background: var(--card);
}

/* ---- vision: winkyvision's tube and indigo bezel in both modes, since
   the app is dark-only (winkyvision public/css/winkyvision.css); its
   theme's light palette is its dark one ---- */

html[data-client='vision'] body {
    background: #07060d;
    font-family: 'VT323', ui-monospace, monospace;
}

/* Rauthy sets its faces by class, and VT323 reads small at a sans
   face's size, so the card's text is sized up as the app's 21-24px. */
html[data-client='vision'] :is(.font-default, .font-label, .font-mono) {
    font-family: 'VT323', ui-monospace, monospace;
}

html[data-client='vision'] .outer .container :is(label, input, button, .loginWith div) {
    font-size: 24px;
}

/* The wordmark, as the app's: its colours split as a tube misconverges. */
html[data-client='vision'] :is(h1, h2, h3) {
    font-family: 'Press Start 2P', monospace;
    font-weight: 400;
    color: #ffffff;
    text-shadow:
        -2px 0 #ff2fa6,
        2px 0 #29e7ff,
        0 0 14px rgba(255, 47, 166, 0.7),
        0 0 28px rgba(41, 231, 255, 0.35);
}

html[data-client='vision'] body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}

html[data-client='vision'] .outer {
    background: transparent;
}

html[data-client='vision'] .outer .container {
    --card: #15122a;
    background:
        linear-gradient(90deg, #ffb02e, #ff6a3d 33%, #ff2fa6 66%, #8a4dff) top / 100% 4px no-repeat,
        var(--card);
    border: 1px solid #2b2550;
    border-radius: 18px / 14px;
    box-shadow: 0 0 24px rgba(255, 47, 166, 0.18);
}

html[data-client='vision'] .outer .container input {
    background: #07060d;
}
