html, body {
  background: #f3f6fa !important;
  background-attachment: fixed !important;
}

.display { display: none; }

.navbar {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.navbar-collapse {
  display: block !important;
}

.navbar-toggler { display: none !important; }

.card {
  max-width: 440px;
  margin: 64px auto;
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 50, 90, 0.14);
  position: relative;
  overflow: hidden;
  padding-top: 8px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: linear-gradient(90deg, #1c6e4f 0%, #2fb6c4 50%, #1c3f7a 100%);
}

.card-body { padding: 28px 30px 30px; }

a.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #1c3f7a !important;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

img.menu-logo {
  height: 46px !important;
  width: auto;
}

img.logo { display: none; }

.navbar-nav {
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 18px 0 22px;
}

.navbar-nav .nav-item { width: 100%; }

.navbar-nav .nav-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1.5px solid #d6e4ee;
  color: #1c3f7a !important;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all .15s ease;
}

.navbar-nav .nav-link i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #1c6e4f;
}

.navbar-nav .nav-link:hover {
  background: #eaf5fc;
  border-color: #2fb6c4;
}

.result.alert {
  border-radius: 12px;
  font-size: 0.92rem;
}

label.control-label, label.col-form-label {
  font-weight: 600;
  color: #1c3f7a;
  text-align: left !important;
}

.input-group {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,50,90,0.08);
}

.input-group-text {
  background: #1c6e4f;
  color: #fff;
  border: none;
  border-radius: 999px 0 0 999px !important;
  padding: 0 16px;
}

input.form-control {
  border: 1px solid #e2e9f0;
  border-left: none;
  border-radius: 0 999px 999px 0 !important;
  padding: 12px 16px;
}

input.form-control:focus {
  border-color: #2fb6c4;
  box-shadow: none;
}

button.btn-primary, button#submit, button.btn-success {
  width: 100%;
  border-radius: 999px;
  background-color: #1c3f7a;
  border-color: #1c3f7a;
  padding: 12px;
  font-weight: 700;
  margin-top: 14px;
  letter-spacing: 0.3px;
}

button.btn-primary:hover, button#submit:hover, button.btn-success:hover {
  background-color: #14315f;
  border-color: #14315f;
}

/* Reorganiza: logo grande no topo, depois os botoes, depois alertas/formulario */
.card-body {
  display: flex;
  flex-direction: column;
}

.card-body > a:has(img.logo) {
  order: 1;
  margin-bottom: 4px;
}

.card-body > .container {
  order: 2;
}

.card-body > .result {
  order: 3;
}

.card-body > .alert-info {
  order: 4;
}

a.navbar-brand { display: none; }

img.logo {
  display: block !important;
  max-height: 90px;
  width: auto;
  margin: 4px auto 6px !important;
}

.navbar-nav .nav-link {
  padding: 26px 16px;
}

.navbar-nav .nav-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.navbar-nav .nav-link i {
  font-size: 1.6rem;
  margin-bottom: 0;
}

.logo-subtitle {
  text-align: center;
  color: #5a7a95;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 auto 18px;
  max-width: 300px;
  line-height: 1.4;
}
