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

:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --green: #1f9d55;
  --yellow: #f2c94c;
  --blue: #2f6fed;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: var(--paper);
  color: var(--ink);
}

.btn-soft {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--soft);
}

.btn-block {
  width: 100%;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--soft);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

input[type='password'],
input[type='text'],
input[type='number'] {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-size: 17px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}

input:focus {
  outline: none;
  border-color: var(--ink);
}

.error-text {
  color: #c0392b;
  font-size: 14px;
  min-height: 20px;
}
