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

:root {
  --background: #ffffff;
  --foreground: #1a1f2e;
  --card: #ffffff;
  --muted: #f4f5f7;
  --muted-foreground: #5b6472;
  --border: #e3e6ea;
  --input: #d8dce2;
  --primary: #2f80ed;
  --primary-hover: #2670d4;
  --primary-foreground: #ffffff;
  --accent: #eaf2fd;
  --destructive: #d93025;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--card);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  flex-shrink: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.brand-subtitle {
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted-foreground);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--accent);
}

.shield-icon {
  color: var(--foreground);
  flex-shrink: 0;
}

/* Institutions strip */
.institutions-strip {
  border-top: 1px solid var(--border);
  background-color: rgba(244, 245, 247, 0.6);
}

.institutions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.institutions span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted-foreground);
}
/* Esconde as marcas no celular */
@media (max-width: 767px) {
    .institutions-strip {
        display: none;
    }
}

/* Main card */
.main-content {
  padding-top: 40px;
  padding-bottom: 40px;
}

.card {
  max-width: 768px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--card);
  padding: 56px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-subtitle {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-foreground);
}

.form-area {
  max-width: 576px;
  margin: 32px auto 0;
}

.input-group {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--input);
  border-radius: 6px;
  background-color: var(--background);
}

.input-group:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.input-icon {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--input);
  color: var(--primary);
}

.input-group input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--foreground);
  outline: none;
}

.input-group input::placeholder {
  color: var(--muted-foreground);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  width: 100%;
  max-width: 384px;
  margin: 24px auto 0;
  border: none;
  border-radius: 6px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

.error-message {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--destructive);
}

/* Result page */
.card-center {
  text-align: center;
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--primary);
}

.card-center h1 {
  margin-top: 24px;
}

.codigo-destaque {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 600;
  color: var(--foreground);
}

.result-note {
  max-width: 448px;
  margin: 24px auto 0;
  font-size: 14px;
  color: var(--muted-foreground);
}

.btn-link {
  display: inline-flex;
  width: auto;
  padding: 0 24px;
  margin-top: 32px;
  text-decoration: none;
}
