/* CoastCRM base reset and typography */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

::selection { background: var(--blue-dim); color: var(--text); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

a { color: inherit; }

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

button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.field { text-align: left; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
}
.field input:focus { border-color: var(--blue); }

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--blue-deep); }
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #061420;
}
.btn-primary:hover { background: #37AEE0; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-block { width: 100%; }

.spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(6,20,32,0.35);
  border-top-color: #061420;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
