@font-face {
  font-family: "DM Sans";
  src: url("/assets/DMSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-bg: #ffffff;
  --frame-border: #231f15;
  --panel-border: #d9d5cb;
  --border-destructive: #e9988e;
  --text-secondary: #50564d;
  --control-primary: #6b7268;
  --control-primary-hover: #596057;
  --control-focus-ring: rgb(107 114 104 / 25%);
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-serif: "Reckless Standard M TRIAL", Georgia, serif;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

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

.input-field {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.input-field label {
  color: var(--frame-border);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.input-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  outline: none;
  padding: 9px 12px;
  background: var(--page-bg);
  color: var(--frame-border);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-field input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.input-field input:focus {
  border-color: var(--control-primary);
  box-shadow: 0 0 0 3px rgb(107 114 104 / 14%);
}

.input-field input[aria-invalid="true"] {
  border-color: var(--border-destructive);
  box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.input-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.input-field__error {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button--primary {
  height: 40px;
  border: 0;
  background: var(--control-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.button--primary:hover {
  background: var(--control-primary-hover);
}

.button--secondary {
  height: 44px;
  border: 1px solid var(--panel-border);
  background: #fff;
  color: var(--frame-border);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.button--secondary:hover {
  background: #fafaf8;
  border-color: #bdb8ac;
}

.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid var(--control-focus-ring);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.text-link {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.text-link:hover {
  color: var(--frame-border);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link--button {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: inherit;
  line-height: inherit;
}

.auth-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  border-radius: 8px;
  background: #fff;
}
