/* App shell — reaproveita tokens do site */
@import url('/css/style.css');

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 100px;
}

.app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.app__brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  text-decoration: none;
}

.app__nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app__nav a {
  color: var(--fg-mute);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}
.app__nav a.is-active,
.app__nav a:hover {
  color: var(--fg);
  background: var(--bg-card);
  text-decoration: none;
}

.app h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  text-transform: uppercase;
  margin: 20px 0 8px;
  letter-spacing: -.3px;
}
.app h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  margin: 24px 0 12px;
  color: var(--accent);
}
.app p { color: var(--fg-mute); }

.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}
.chip.is-on {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

.alert {
  border-left: 4px solid;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 12px;
}
.alert__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.alert__level {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
}
.alert--critical          { border-color: var(--critical); }
.alert--critical .alert__level { background: var(--critical); }
.alert--high              { border-color: var(--high); }
.alert--high .alert__level { background: var(--high); }
.alert--medium            { border-color: var(--medium); }
.alert--medium .alert__level { background: var(--medium); color: #000; }
.alert--low               { border-color: var(--low); }
.alert--low .alert__level { background: var(--low); }

.alert__title {
  font-weight: 600;
  color: var(--fg);
  font-size: 15px;
}
.alert__explain { color: var(--fg); font-size: 14px; line-height: 1.55; margin: 4px 0 6px; }
.alert__action  { color: var(--fg-mute); font-size: 13px; font-style: italic; margin: 0; }
.alert__source  { font-size: 11px; color: var(--fg-dim); margin-top: 8px; }
.alert__source a { color: var(--accent); }
.alert__disclaimer { font-size: 11px; color: var(--fg-dim); margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--fg-mute);
}
.empty-state svg { color: var(--accent); margin-bottom: 16px; }

textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: monospace;
  font-size: 13px;
  resize: vertical;
}

/* Override browser autofill white background — fix #1: formularios com aparencia inconsistente */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  caret-color: var(--fg);
  transition: background-color 5000s ease-in-out 0s;
  border-color: var(--border) !important;
}

/* Garante consistencia de inputs (incluindo password) */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
}
