* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #241216;
  background: #ffeef1;
}

.login-shell { width: min(100%, 420px); }
.container-logo { margin-bottom: 18px; text-align: center; }
.container-logo img { width: auto; height: 92px; }

.container-login {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 16px 42px -30px rgba(0, 0, 0, 0.75);
}

.container-titulo-acesso { display: grid; gap: 6px; }
.container-titulo-acesso h1,
.container-titulo-acesso h3 { font-size: 22px; font-weight: 800; }
.container-titulo-acesso p,
.code-hint { color: #65464d; font-size: 14px; line-height: 1.4; }
.container-acesso { width: 100%; }

.group-input {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.group-input input {
  width: 100%;
  padding: 20px 14px 7px;
  border: 2px solid #aaa;
  border-radius: 8px;
  outline: none;
  color: #241216;
  background: transparent;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.group-input input:focus { border-color: #ac1830; }
.group-input input:disabled { color: #3b2429; background: #f2ecee; opacity: 1; }

.group-input label {
  position: absolute;
  top: 18px;
  left: 14px;
  padding: 0 4px;
  color: #777;
  background: #fafafa;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease-in-out;
}

.group-input input:focus ~ label,
.group-input input:not(:placeholder-shown) ~ label,
.group-input input:autofill ~ label,
.group-input input:-webkit-autofill ~ label {
  top: 6px;
  color: #ac1830;
  font-size: 12px;
}

/* Neutraliza o fundo azul/amarelo aplicado pelo autocomplete do navegador. */
.group-input input:autofill,
.group-input input:-webkit-autofill,
.group-input input:-webkit-autofill:hover,
.group-input input:-webkit-autofill:focus,
.group-input input:-webkit-autofill:active {
  border-color: #aaa;
  caret-color: #241216;
  -webkit-text-fill-color: #241216;
  -webkit-box-shadow: 0 0 0 1000px #fafafa inset;
  box-shadow: 0 0 0 1000px #fafafa inset;
  transition: background-color 9999s ease-out 0s;
}

.group-input input:-webkit-autofill:focus { border-color: #ac1830; }

.login-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.login-alert.error { color: #8a1024; border: 1px solid #f2a7b5; background: #ffe1e7; }
.login-alert.info { color: #25522c; border: 1px solid #a9d8ae; background: #e8f7e9; }

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
  color: #3b2429;
  font-size: 14px;
  font-weight: 700;
}

.remember-row input { width: 16px; height: 16px; accent-color: #ac1830; }

.btn-login {
  width: 100%;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #f2f2f2;
  background: #ac1830;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-login:hover { color: #ac1830; border-color: #ac1830; background: transparent; }
.btn-secondary {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1px solid #ac1830;
  border-radius: 8px;
  color: #ac1830;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.btn-secondary:hover:not(:disabled) { color: #fff; background: #ac1830; }
.btn-secondary:disabled { cursor: not-allowed; opacity: 0.62; }
.resend-code-form { margin-top: 2px; }
.login-link { display: inline-flex; margin-top: 16px; color: #ac1830; font-size: 14px; font-weight: 800; text-decoration: none; }
.code-hint { margin: -6px 0 16px; }

@media (max-width: 480px) {
  .container-login { padding: 28px; }
}
.login-link-button {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
