html {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #f4efe6;
  color: #241c14;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.4;
}

body {
  min-height: 100vh;
}

h1,
h2,
.titulo {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 8px;
}

p {
  margin: 0 0 8px;
}

a {
  color: #1f5c32;
}

button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.moldura {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.cartao {
  background: #fffdf8;
  border: 1px solid #ddd2c2;
  border-radius: 8px;
  padding: 14px;
}

.marca {
  margin: 0 0 2px;
}

.subtitulo {
  margin: 0 0 12px;
  color: #5c5146;
}

label,
.rotulo {
  display: block;
  margin: 10px 0 4px;
}

.linha-senha {
  display: flex;
  gap: 6px;
  align-items: center;
}

.linha-senha input {
  flex: 1;
  min-width: 0;
}

.linha-retorno {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.linha-retorno textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  field-sizing: content;
  height: auto;
  min-height: 8em;
  line-height: 1.35;
  padding: 8px 10px;
  border: 1px solid #c9bba8;
  border-radius: 6px;
  background: #fff;
  color: #241c14;
  overflow: hidden;
  overflow-wrap: anywhere;
  resize: none;
}

.linha-retorno button {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9bba8;
  border-radius: 6px;
  background: #fff;
  color: #241c14;
}

.digitos {
  display: flex;
  gap: 6px;
}

.digito-codigo {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  text-align: center;
  border: 1px solid #c9bba8;
  border-radius: 6px;
  background: #fff;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

button,
.btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #1f5c32;
  background: #1f5c32;
  color: #fff;
  cursor: pointer;
}

button.secundario,
a.btn.secundario {
  background: #fff;
  color: #1f5c32;
}

.btn-olho {
  width: 44px;
  min-width: 44px;
  padding: 0;
  background: #fff;
  color: #241c14;
  border-color: #c9bba8;
}

.icone-olho {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.btn-olho .olho-aberto {
  display: none;
}

.btn-olho.mostrando .olho-fechado {
  display: none;
}

.btn-olho.mostrando .olho-aberto {
  display: block;
}

.chk {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.chk input {
  width: 18px;
  height: 18px;
}

.aviso {
  min-height: 1.2em;
  color: #5c5146;
}

.aviso-ok {
  color: #1f5c32;
}

.resultado {
  margin: 0 0 10px;
  font-weight: bold;
}

.erro-caixa {
  border-color: #8c3a2f;
}

.erro-caixa h1 {
  color: #8c3a2f;
}

.rodape {
  margin-top: 14px;
  color: #6b5e52;
}

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd2c2;
}

.login-ok {
  margin: 0;
  color: #1f5c32;
}

@media (min-width: 720px) {
  .moldura {
    padding-top: 40px;
  }
}
