:root {
  --color-gray-7: #333333;
  --color-warning: #FFFFBF;
  --primary: #1351B4;
  --primary-dark: #0D3C8C;
  --background: #FFFFFF;
  --border: #888888;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

header img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  display: flex;
  flex-wrap: wrap;
  margin-right: auto;
  margin-left: auto;
  max-width: 1600px;
  width: 100%;
  padding-right: 8px;
  padding-left: 8px;
  min-height: calc(100vh - 254px);
}

#aside-signin {
  flex: 1 0 60%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

#identidade-govbr {
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  height: auto;
}

#main-signin {
  flex: 1 0 38%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

form#loginData {
  width: 100%;
  max-width: 450px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff 0 0 no-repeat padding-box;
  box-shadow: 0 2px 4px #0003;
  padding: 20px;
  margin: 20px auto auto;
  border-radius: 6px;
}

#login-cpf {
  align-items: flex-start;
  max-width: 450px;
  min-height: 393px;
  width: 100%;
}

#login-cpf h3 {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 20px;
  margin-top: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #333;
}

#login-cpf p {
  margin-bottom: 1em;
  color: #333;
  font-size: 14px;
}

#login-cpf p strong {
  font-weight: 700;
}

.item-login-signup-ways {
  display: flex;
  align-items: center;
  margin: 20px 0 0;
  cursor: pointer;
  width: 100%;
}

.item-login-signup-ways a {
  display: flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.item-login-signup-ways a img {
  vertical-align: middle;
  margin-right: 10px;
  width: 24px;
  height: auto;
}

.item-login-signup-ways a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.accordion-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-height: none;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  margin-top: 15px;
}

.accordion-panel label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.accordion-panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #888888;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  background: #fff;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.2s ease;
}

.accordion-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(19, 81, 180, 0.15);
}

.accordion-panel input::placeholder {
  color: #999;
  font-style: italic;
}

.button-panel {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
}

.button-continuar {
  width: 145px;
  height: 40px;
  background: var(--primary) 0 0 no-repeat padding-box;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.button-continuar:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(19, 81, 180, 0.3);
  transform: translateY(-1px);
}

.button-continuar:active {
  transform: translateY(0);
}

.button-continuar.loading {
  color: transparent !important;
  position: relative;
}

.button-continuar.loading:after {
  animation: spin 1.3s infinite linear;
  border: 2px solid white;
  border-radius: 50%;
  border-right-color: transparent;
  content: "";
  display: block;
  height: 1.2em;
  left: calc(50% - 0.6em);
  position: absolute;
  top: calc(50% - 0.6em);
  width: 1.2em;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .container {
    flex-direction: column-reverse;
  }

  .card {
    padding: 10px;
  }

  .button-continuar {
    width: 100%;
  }

  #identidade-govbr {
    display: none;
  }

  #login-cpf {
    max-width: 340px;
  }
}

@media (min-width: 998px) {
  .container {
    max-width: 1200px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1400px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }
}
