/* ===================== TELAS DE ACESSO ===================== */

body.tela-auth {
  background: linear-gradient(140deg, var(--primary-dark), var(--primary) 55%, #0a4a5a);
  min-height: 100vh;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--raio);
  box-shadow: 0 10px 40px rgba(6, 30, 40, 0.28);
  padding: 32px 30px;
}

.auth-marca {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--borda);
}

.auth-marca-titulo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
}

.auth-marca-sub {
  font-size: 0.78rem;
  color: var(--texto-suave);
  margin-top: 2px;
}

.auth-titulo {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texto);
}

.auth-sub {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--texto-suave);
  line-height: 1.5;
}

.auth-card label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto);
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--texto);
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 8px;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-card .btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.auth-card .btn-primary:hover { background: var(--primary-dark); }
.auth-card .btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }

.auth-alerta {
  padding: 11px 13px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid transparent;
}

.auth-alerta-erro    { background: var(--vermelho-bg); color: var(--vermelho); border-color: #f6c9d3; }
.auth-alerta-ok      { background: var(--verde-bg);    color: var(--verde);    border-color: #bbf0cf; }
.auth-alerta-aviso   { background: #fffbeb;            color: #92400e;         border-color: #fde68a; }
.auth-alerta-info    { background: var(--accent);      color: var(--primary-dark); border-color: #c5e5ee; }

.auth-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--borda);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover { text-decoration: underline; }

.auth-dica {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--texto-suave);
}

/* ---------- barra de usuário no cabeçalho do app ---------- */

.header-user {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.user-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
}

.user-link {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.user-link:hover { color: white; border-bottom-color: white; }
