@charset "UTF-8";
body {
  background: #003f6b;
  font-family: "Roboto", sans-serif;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 20px;
}

.login-logo {
  text-align: center;
}

.login-logo img {
  height: 64px;
}

.login-logo p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.login-box {
  background: #fff;
  border-radius: 8px;
  padding: 32px 36px;
  width: 500px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.login-box h5 {
  color: #003f6b;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 16px;
}

.login-subtitle {
  color: #888;
  font-size: 13px;
  margin-bottom: 22px;
}

.perfil-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.perfil-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 2px solid #d9e5f0;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
  text-align: left;
  width: 100%;
}

.perfil-card:hover {
  border-color: #0097d6;
  background: #f5fbff;
}

.perfil-card.selected {
  border-color: #00558c;
  background: #e8f3fa;
}

.perfil-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.av-admin {
  background: #00558c;
}

.av-gestor {
  background: #2e7d32;
}

.av-colaborador {
  background: #6a4ca8;
}

.av-sociedade {
  background: #e65100;
}

.av-federada {
  background: #00695c;
}

.perfil-info {
  flex: 1;
}

.perfil-nome {
  font-size: 13.5px;
  font-weight: 600;
  color: #222;
}

.perfil-cargo {
  font-size: 12px;
  color: #888;
  margin-top: 1px;
}

.perfil-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.bg-admin {
  background: #e8f3fa;
  color: #00558c;
}

.bg-gestor {
  background: #e8f5e9;
  color: #2e7d32;
}

.bg-colaborador {
  background: #f3eefe;
  color: #6a4ca8;
}

.bg-sociedade {
  background: #fce8e0;
  color: #e65100;
}

.bg-federada {
  background: #e0f2ef;
  color: #00695c;
}

.perfil-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d0dce8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 10px;
  transition: all 0.15s;
}

.perfil-card.selected .perfil-check {
  background: #00558c;
  border-color: #00558c;
  color: #fff;
}

.btn-login {
  background: #00558c;
  border-color: #00558c;
  color: #fff;
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-login:hover:not(:disabled) {
  background: #003f6b;
}

.btn-login:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.login-footer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  text-align: center;
}

/* ── Login real: campos, alertas e opções ───────────────────────────────── */
/* O seletor de persona deu lugar a e-mail e senha. As classes abaixo são
   novas; as de .perfil-* foram removidas junto com o formulário antigo.     */
.login-field {
  margin-bottom: 14px;
  text-align: left;
}

.login-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #37474f;
  margin-bottom: 5px;
}

.login-field .form-control {
  height: 42px;
  font-size: 14px;
  border: 1px solid #dfe6ec;
  border-radius: 6px;
  padding: 0 12px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field .form-control:focus {
  border-color: #0097d6;
  box-shadow: 0 0 0 3px rgba(0, 151, 214, 0.12);
  outline: none;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 18px;
  font-size: 12px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  color: #546e7a;
  cursor: pointer;
}

.login-link {
  color: #0097d6;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #a4322a;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}

.login-alert-ok {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}

.login-hint {
  display: block;
  font-size: 11px;
  color: #90a4ae;
  margin-top: 4px;
}

.login-logout {
  margin-top: 14px;
}

.login-link-btn {
  background: none;
  border: none;
  color: #90a4ae;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.login-link-btn:hover {
  color: #546e7a;
  text-decoration: underline;
}

/* ── Ativação do segundo fator ──────────────────────────────────────────── */
.login-box-wide {
  max-width: 420px;
}

.tfa-steps {
  text-align: left;
  font-size: 12.5px;
  color: #546e7a;
  padding-left: 18px;
  margin: 0 0 16px;
  line-height: 1.7;
}

.tfa-qr {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 8px;
  margin-bottom: 18px;
}

.tfa-qr svg {
  width: 170px;
  height: 170px;
}

.tfa-code {
  text-align: center;
  letter-spacing: 6px;
  font-size: 20px !important;
  font-weight: 600;
}

.tfa-recovery {
  text-align: left;
  margin-top: 16px;
  font-size: 12px;
  color: #546e7a;
}

.tfa-recovery summary {
  cursor: pointer;
  font-weight: 500;
  color: #0097d6;
}

.tfa-recovery ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  font-family: Consolas, monospace;
}
