/* Caminho: /public_html/assets/css/base.css */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4fa;
  --primary: #163d7a;
  --primary-strong: #0e2c5d;
  --accent: #c79b3b;
  --text: #172033;
  --text-soft: #5f6b84;
  --border: #dbe3ef;
  --success: #1f8f5f;
  --danger: #b63b3b;
  --shadow: 0 12px 32px rgba(19, 39, 75, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* Campos de formulário globais */
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 15px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Estado de foco */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 61, 122, 0.08);
}

/* Label padrão */
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Mensagem auxiliar */
.field-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Grupos de formulário */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Campos com botão lateral */
.password-field {
  display: flex;
  gap: 6px;
}

/* Checkbox inline */
.check-inline {
  display: flex;
  gap: 6px;
  align-items: center;
}

.check-inline input {
  width: auto;
  margin: 0;
}

/* Feedback e links auxiliares */
.feedback {
  min-height: 18px;
  font-size: 0.85rem;
  color: var(--danger);
}

.text-link {
  color: var(--primary);
}

/* Botões */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger-outline,
.btn-link,
.quick-action,
.nav-item {
  transition: all 0.2s ease;
}

.btn {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
}

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

.btn-secondary {
  background: var(--surface-soft);
  color: var(--primary);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(182, 59, 59, 0.3);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-link {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 0;
}

.icon-button {
  width: 42px;
  border-radius: 10px;
  background: var(--surface-soft);
  flex-shrink: 0;
}

/* Cards e superfícies reutilizáveis */
.surface-card {
  width: 100%;
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.highlight-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--primary);
}

.highlight-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Branding reutilizável */
.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-wrap {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-weight: bold;
  flex-shrink: 0;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.eyebrow {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
}