/**
 * login.css - Telas de Login, MFA, Troca de Senha de Bootstrap e Autenticação
 * UTILIT - OPS360
 */

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #090d16;
  background-image: 
    radial-gradient(at 15% 10%, rgba(247, 168, 27, 0.12) 0px, transparent 50%),
    radial-gradient(at 85% 90%, rgba(16, 185, 129, 0.10) 0px, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-wrap img {
  height: 44px;
  max-width: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 4px;
}

.brand-name .accent {
  color: var(--brand-accent, #F7A81B);
}

.subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.4;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.ms-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ms-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ms-btn:active {
  transform: scale(0.98);
}

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.info-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.5;
}

.security-note {
  margin-top: 24px;
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

footer.foot {
  margin-top: 20px;
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}

.local-form {
  text-align: left;
  margin-top: 8px;
}

.local-form label {
  display: block;
  font-size: 12px;
  color: #475569;
  margin: 12px 0 5px;
  font-weight: 600;
}

.local-form input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-family: var(--font-body);
  background: #ffffff;
  color: #0f172a;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.local-form input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.local-btn {
  width: 100%;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 8px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.local-btn:hover {
  background: #1e293b;
}

.local-btn:active {
  transform: scale(0.98);
}

.toggle-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.toggle-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.15s;
}

.portal-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
