﻿:root {
  --bg: #f6f8fb;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --surface: #ffffff;
  --border: #dbe2ea;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.error-box {
  display: none;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 12px;
}

html.booting body {
  visibility: hidden;
}

#boot-loader {
  display: none;
}

html.booting #boot-loader {
  display: flex;
  visibility: visible;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0b1220;
  color: #e2e8f0;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Controles consistentes e sem zoom automatico do formulario no iPhone. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, input, select, textarea { font-family: inherit; }
button, input[type="submit"], input[type="button"] { -webkit-appearance: none; appearance: none; }
input[type="date"], input[type="datetime-local"], input[type="time"] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
select { -webkit-appearance: none; appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px; }
@media (max-width: 980px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { font-size: 16px !important; min-height: 44px; }
}
