/* Portal CIOP — painel Alterar senha (vidro iOS) */

.password-panel-note {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #3f4757;
}

.password-panel {
  display: none;
  position: relative;
  isolation: isolate;
  max-width: min(560px, 94vw);
  margin: 0 auto 18px;
  padding: 22px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow:
    0 18px 48px -20px rgba(6, 20, 50, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  z-index: 30;
  overflow: hidden;
}

.password-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 107, 0, 0.08) 100%
  );
}

.password-panel.active {
  display: block;
}

.password-panel h2,
.password-panel-note,
.password-panel label,
.password-panel input,
.password-actions,
.password-status {
  position: relative;
  z-index: 1;
}

.password-panel h2 {
  margin: 0 0 6px;
  color: #06245c;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.password-panel label {
  display: block;
  margin: 10px 0 5px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.password-panel input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #101828;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.password-panel input:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.7);
}

.password-panel input:focus {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(6, 36, 92, 0.35);
  box-shadow:
    0 0 0 3px rgba(10, 132, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.password-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.password-panel .btn-small,
.btn-small {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(6, 36, 92, 0.78);
  color: #fff;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    0 6px 16px rgba(6, 36, 92, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.password-panel .btn-small:hover,
.btn-small:hover {
  background: rgba(255, 107, 0, 0.9);
  transform: translateY(-1px);
}

.password-panel .btn-small.secondary,
.btn-small.secondary {
  background: rgba(255, 255, 255, 0.42);
  color: #06245c;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.password-panel .btn-small.secondary:hover,
.btn-small.secondary:hover {
  background: rgba(255, 255, 255, 0.62);
  color: #06245c;
  transform: translateY(-1px);
}

.password-status {
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 12px;
  color: #3f4757;
}

.password-status.ok {
  color: #15803d;
}

.password-status.erro {
  color: #b91c1c;
}

@media (min-width: 721px) {
  body:has(.body-bg-wall) .password-panel,
  body.login-v2 .password-panel {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
  }
}

@media (max-width: 520px) {
  .password-panel {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .password-panel h2 {
    font-size: 16px;
  }
}
