/* packages/client/src/components/forms/TextField.css */
x-text-field {
  color: var(--color-foreground);
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

x-text-field .input-container {
  background-color: var(--color-background);
  border: 1px solid var(--color-foreground);
  display: flex;
  cursor: text;
  border-radius: .375rem;
  align-items:  center;
  padding-inline-start: .75em;
  padding-inline-end: .75em;
}

form[data-submitted="true"] :is(x-text-field) .input-container:has(input:invalid) {
  border: 1px solid #f99;
}

x-text-field .input-container:focus-within {
  outline: 2px solid hsl(from var(--color-accent-1) h s 90%);
  border: none;
}

x-text-field .input-container:has(input:read-only) {
  background-color: hsl(from var(--color-background) h s 20%);
}

x-text-field input {
  appearance: none;
  font: inherit;
  cursor: inherit;
  outline: none;
  background: none;
  background-color: inherit;
  border: none;
  width: 100%;
  min-height: 42px;
  margin: auto 0;
  padding: 0;
}

/* app/client/src/styles/reset.css */
*, *:before, *:after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin-block-end: 0;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, button, input, label {
  line-height: 1.1;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img, picture {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

/* app/client/src/login/index.css */
:root {
  --color-background: oklch(100% 0 0);
  --color-foreground: oklch(0% 0 0);
  --color-accent-1: #9500ff;
  --color-accent-2: #ffb700;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #000;
    --color-foreground: #fff;
  }
}

html {
  background-color: var(--color-background);
  color: var(--color-foreground);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 1rem;
  min-width: 375px;
  max-width: 650px;
  margin: auto;
  padding: 1rem;
}

main header {
  display: flex;
  flex-direction: row;
  place-content:  center space-between;
  align-items:  center;
  gap: 1rem;
  width: 100%;
  padding: .5rem;
}

main h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

svg.icon {
  fill: var(--color-foreground);
  width: 3rem;
  height: 3rem;
}

x-login {
  display: flex;
  border: 1px solid hsl(from var(--color-foreground) h s calc(l - 50));
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 650px;
}

x-login h2 {
  background-color: hsl(from var(--color-background) h s calc(1 + 5));
  border-radius: 8px;
  padding: 1rem;
}

x-login form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

x-login form .actions {
  display: flex;
  justify-content: flex-end;
  align-items:  center;
  gap: 1rem;
  width: 100%;
}

x-login button[type="submit"] {
  background-color: var(--color-foreground);
  border-radius: 8px;
  width: 100%;
  padding: 8px 20px;
  font-size: large;
  font-weight: bold;
}

@media (prefers-color-scheme: dark) {
  x-login input {
    color: var(--color-foreground);
  }
}
