* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  background: #cac8c8;
}

.container-geral {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: #d3d4d6;
}

.container-login {
  width: min(100%, 311px);
  padding: 48px;
  background: #003e5b;
  border: 1px solid #585757;
  border-radius: 14.4px;
  box-shadow: rgb(4, 91, 131) 3px 3px 5px 5px;
}

.figure {
  margin: 0 0 24px;
  display: flex;
  justify-content: center;
}

.figure-img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.login-erro {
  margin: 0 0 16px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(192, 57, 43, 0.2);
  border: 1px solid rgba(240, 128, 128, 0.6);
  color: #ffe8e8;
  font-size: 0.85rem;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  width: 100%;
}

.input-group-text.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  padding: 6px 12px;
  background: #3a85c2;
  color: #fff;
  border: 1px solid #dee2e6;
  border-right: none;
  border-radius: 6px 0 0 6px;
}

.form-control.ipt {
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

.form-control.ipt::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.form-control.ipt:focus {
  border-color: #9ec5e8;
  box-shadow: 0 0 0 2px rgba(58, 133, 194, 0.35);
}

.d-grid {
  margin-top: 4px;
}

.btn-login {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4.8px;
  background: #3a85c2;
  color: #f0f8ff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.2) 0 4px 6px 0;
  transition: background 0.15s, transform 0.1s;
}

.btn-login:hover {
  background: #337ab7;
}

.btn-login:active {
  transform: translateY(1px);
}

/* Meu Diário branding */
.figure.brand { flex-direction: column; align-items: center; gap: 10px; }
.brand-icon { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)); }
.brand-name { color: #f0f8ff; font-size: 26px; font-weight: 700; letter-spacing: 0.5px; }
