Dough Git

clove/authServer

web/src/app.css

back to web/src

/* web/src/app.css
 * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
 * Licensed under the DASL-1.2 Licence.
 * See LICENCE.md in the project root for full licence information.
 */

/* Look shared with the mail app (~/projects/email/src/web/app.css):
   translucent raised surfaces, hairline borders, rounded cards, pill
   buttons, the site wallpaper behind everything. IBM Plex Sans for text and
   Comic Code for monospace, as on doughmination.gay. */

/* IBM Plex Sans for text, as on doughmination.gay; Comic Code for anything monospace */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Code";
  src: url("https://raw.doughmination.gay/f/Comic-Code/woff2/ComicCode-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0a0d;
  --raised: rgb(255 255 255 / 3.5%);
  --raised-hover: rgb(255 255 255 / 6%);
  --line: rgb(255 255 255 / 9%);
  --text: #ece9ef;
  --muted: #a49eab;
  --accent: #eb459e;
  --accent-dim: rgb(235 69 158 / 14%);
  --accent-line: rgb(235 69 158 / 40%);
  --panel: rgb(11 10 13 / 72%);
  --ok: #5fd3a0;
  --ok-bg: rgb(95 211 160 / 10%);
  --danger: #ff5c7a;
  --danger-bg: rgb(255 92 122 / 10%);
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "Comic Code", ui-monospace, "Cascadia Code", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 14%) transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

/* The site's wallpaper and fade, fixed behind the whole page. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background: url("/static/background.avif") center / cover no-repeat;
  opacity: 0.5;
}

body::after {
  background:
    linear-gradient(rgb(11 10 13 / 55%), rgb(11 10 13 / 80%) 55%, var(--bg)),
    radial-gradient(70% 60% at 20% 30%, rgb(235 69 158 / 12%), transparent 70%);
}

body > * {
  position: relative;
  z-index: 1;
}

a,
button,
.btn,
select,
summary,
label[for] {
  cursor: pointer;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
textarea {
  cursor: text;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

a {
  color: var(--text);
  text-decoration-color: rgb(235 69 158 / 55%);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.hidden {
  display: none !important;
}

/* Small uppercase accent label. */
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- layout ------------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

main {
  margin: 0 auto;
  padding: 1.5rem 16px 3rem;
}

main.wide {
  max-width: 960px;
}

main.narrow {
  max-width: 440px;
  padding-top: 3rem;
}

.card,
.panel {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  backdrop-filter: blur(6px);
}

.panel {
  margin: 1rem 0;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.25rem 0.5rem;
}

.tabs a {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.85rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.tabs a:hover {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-dim);
  color: var(--text);
}

.tabs a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* --- forms ------------------------------------------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field > span,
legend {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 25%);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

textarea {
  resize: vertical;
  font-size: 0.875rem;
}

input:disabled {
  opacity: 0.7;
}

/* Phones: 16px fields, or iOS Safari zooms the page on focus. */
@media (max-width: 800px) {
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px;
  }
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: 0;
}

legend {
  padding: 0 0.3rem;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check input {
  margin-top: 0.3rem;
  accent-color: var(--accent);
}

/* Buttons: pills. */

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

button:hover:not(:disabled),
.btn:hover {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-dim);
  color: var(--text);
}

button:disabled {
  opacity: 0.5;
}

button.primary,
.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

button.primary:hover:not(:disabled),
.btn.primary:hover {
  border-color: var(--accent);
  color: #fff;
  filter: brightness(1.12);
}

button.danger,
.btn.danger {
  border-color: rgb(255 92 122 / 40%);
  color: var(--danger);
}

button.danger:hover:not(:disabled),
.btn.danger:hover {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgb(255 92 122 / 14%);
  color: var(--danger);
}

button.small,
.btn.small {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

button.wide,
.btn.wide {
  width: 100%;
  padding-block: 0.6rem;
}

button.link,
.btn.link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(235 69 158 / 55%);
  text-underline-offset: 0.2em;
}

button.link:hover:not(:disabled),
.btn.link:hover {
  border-color: transparent;
  box-shadow: none;
  color: #fff;
  text-decoration-color: var(--accent);
}

form.inline {
  display: inline;
}

.inline-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.inline-edit input[type="text"] {
  flex: 1 1 12rem;
  width: auto;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

details summary {
  color: var(--muted);
  margin: 0.25rem 0;
}

details summary:hover {
  color: var(--text);
}

details[open] summary {
  margin-bottom: 0.75rem;
}

/* --- content ------------------------------------------------------------------ */

.notice {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--raised);
  margin: 0.75rem 0;
}

.notice p {
  margin: 0.25rem 0;
}

.notice.ok {
  border-color: rgb(95 211 160 / 40%);
  background: var(--ok-bg);
}

.notice.error {
  border-color: rgb(255 92 122 / 40%);
  background: var(--danger-bg);
}

.error {
  color: var(--danger);
}

.badge {
  display: inline-block;
  margin: 0.1rem 0.3rem 0.1rem 0;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.badge.ok {
  color: var(--ok);
  border-color: rgb(95 211 160 / 40%);
}

.badge.danger {
  color: var(--danger);
  border-color: rgb(255 92 122 / 40%);
  margin-left: 0.4rem;
}

.rows {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.rows > li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.rows > li:last-child {
  border-bottom: 0;
}

.grow {
  flex: 1;
  min-width: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

table.compact td {
  font-size: 0.875rem;
}

.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  min-width: 0;
}

.copyrow {
  display: flex;
  gap: 0.5rem;
}

.copyrow input {
  flex: 1;
}

.qr {
  display: block;
  margin: 1rem auto;
  background: #fff;
  border-radius: var(--radius-sm);
}

.secret code {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

/* --- legal pages + footer ------------------------------------------------------- */

.legal {
  max-width: 68ch;
}

.legal h2 {
  margin-top: 2rem;
}

.legal li {
  margin: 0.35rem 0;
}

/* "Your apps": one tile per application, linking to its website. */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.app-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.app-tile:hover {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-dim);
  color: var(--text);
}

.app-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
}

img.app-mark {
  object-fit: contain;
  padding: 0.35rem;
}

.app-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.app-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 0 16px 2rem;
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--muted);
}

::selection {
  background: var(--accent);
  color: #fff;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .rows > li {
    flex-wrap: wrap;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .kv dd {
    margin-bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}