/* =========================================================
   MI CUENTA | LICMAN
   Cambio de contraseña usuario
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    "Inter",
    "Segoe UI",
    Arial,
    sans-serif;

  color: #102033;

  background:
    radial-gradient(
      circle at top left,
      rgba(11, 79, 138, 0.34),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #061626 0%,
      #0b1f36 48%,
      #071321 100%
    );
}

.account-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

/* =========================================================
   HEADER
   ========================================================= */

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  margin-bottom: 28px;
  padding: 20px 22px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.06)
    );

  box-shadow:
    0 24px 60px
    rgba(0, 0, 0, 0.28);

  backdrop-filter: blur(18px);
}

.account-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-logo-box {
  width: 102px;
  min-width: 102px;
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 16px 36px
    rgba(0, 0, 0, 0.22);
}

.account-logo-box img {
  max-width: 82px;
  max-height: 54px;
  object-fit: contain;
}

.account-kicker,
.account-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 6px;

  color: #0b4f8a;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-topbar .account-kicker {
  color: #9ed2ff;
}

.account-brand h1 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.account-brand p {
  max-width: 560px;
  margin: 7px 0 0;

  color: rgba(255, 255, 255, 0.76);

  font-size: 0.95rem;
  line-height: 1.55;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.account-back-link,
.account-logout-btn {
  min-height: 44px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 14px;

  color: #ffffff;

  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.account-back-link {
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    );

  box-shadow:
    0 14px 28px
    rgba(11, 79, 138, 0.32);
}

.account-logout-btn {
  background:
    linear-gradient(
      135deg,
      #ef3340,
      #b5121b
    );

  box-shadow:
    0 14px 28px
    rgba(239, 51, 64, 0.28);
}

.account-back-link:hover,
.account-logout-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* =========================================================
   MAIN
   ========================================================= */

.account-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.account-card,
.password-card,
.security-note-card {
  border: 1px solid rgba(213, 226, 238, 0.86);
  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 22px 52px
    rgba(0, 0, 0, 0.22);
}

/* =========================================================
   TARJETA USUARIO
   ========================================================= */

.account-card {
  padding: 24px;
}

.account-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 20px;
}

.account-card h2 {
  margin: 0;

  color: #0b4f8a;

  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.account-card p {
  margin: 6px 0 0;

  color: #526579;

  font-size: 0.94rem;
  font-weight: 700;
}

.account-status-pill {
  min-height: 34px;
  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);

  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.account-info-box {
  padding: 16px;

  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #ffffff 100%
    );
}

.account-info-box span {
  display: block;
  margin-bottom: 6px;

  color: #64748b;

  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-info-box strong {
  display: block;

  color: #102033;

  font-size: 0.95rem;
  font-weight: 950;
  word-break: break-word;
}

/* =========================================================
   CAMBIO PASSWORD
   ========================================================= */

.password-card {
  padding: 26px;
}

.password-card-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.password-card-header h2 {
  margin: 0;

  color: #0b4f8a;

  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.password-card-header p {
  margin: 8px 0 0;

  color: #526579;

  font-size: 0.94rem;
  line-height: 1.55;
}

.password-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: #18324c;

  font-size: 0.86rem;
  font-weight: 950;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;

  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 16px;

  background: #ffffff;

  overflow: hidden;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.password-input-wrap:focus-within {
  border-color: rgba(11, 79, 138, 0.85);

  box-shadow:
    0 0 0 4px
    rgba(11, 79, 138, 0.12);
}

.password-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;

  border: none;
  outline: none;

  color: #102033;
  background: transparent;

  font-size: 0.95rem;
  font-weight: 750;
}

.password-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 650;
}

.toggle-password-btn {
  min-width: 68px;
  padding: 0 14px;

  border: none;
  border-left: 1px solid rgba(148, 163, 184, 0.32);

  color: #0b4f8a;
  background: #f8fbff;

  font-size: 0.78rem;
  font-weight: 950;

  cursor: pointer;
}

.toggle-password-btn:hover {
  background: #edf6ff;
}

/* =========================================================
   MENSAJES
   ========================================================= */

.password-message {
  padding: 13px 15px;

  border-radius: 16px;

  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.45;
}

.password-message.success {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
}

.password-message.error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.26);
}

/* =========================================================
   ACCIONES
   ========================================================= */

.password-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  margin-top: 4px;
}

.save-password-btn,
.clear-password-btn {
  min-height: 48px;
  padding: 0 18px;

  border: none;
  border-radius: 16px;

  font-size: 0.9rem;
  font-weight: 950;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.save-password-btn {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    );

  box-shadow:
    0 14px 28px
    rgba(11, 79, 138, 0.28);
}

.clear-password-btn {
  color: #334155;
  background: #eaf1f8;
}

.save-password-btn:hover,
.clear-password-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.save-password-btn:disabled,
.clear-password-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* =========================================================
   NOTA SEGURIDAD
   ========================================================= */

.security-note-card {
  padding: 20px 22px;

  display: flex;
  align-items: flex-start;
  gap: 16px;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f5faff 100%
    );
}

.security-note-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: rgba(11, 79, 138, 0.10);

  font-size: 1.3rem;
}

.security-note-card h3 {
  margin: 0 0 6px;

  color: #0b4f8a;

  font-size: 1.02rem;
  font-weight: 950;
}

.security-note-card p {
  margin: 0;

  color: #526579;

  font-size: 0.9rem;
  line-height: 1.55;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 860px) {
  .account-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .account-actions {
    justify-content: flex-start;
  }

  .account-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .account-shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0 28px;
  }

  .account-topbar,
  .account-card,
  .password-card,
  .security-note-card {
    border-radius: 18px;
  }

  .account-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-logo-box {
    width: 92px;
    min-width: 92px;
    height: 66px;
  }

  .account-actions,
  .password-actions {
    width: 100%;
  }

  .account-back-link,
  .account-logout-btn,
  .save-password-btn,
  .clear-password-btn {
    width: 100%;
  }

  .account-card-header {
    flex-direction: column;
  }

  .security-note-card {
    flex-direction: column;
  }
}

/* =========================================================
   AJUSTE VISUAL MI CUENTA
   Mismo estilo oscuro/azul del index + sin gradiente rojo
   ========================================================= */

/* Fondo azul oscuro limpio, sin rojo */
body {
  background:
    radial-gradient(
      circle at top left,
      rgba(11, 79, 138, 0.26),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(30, 64, 105, 0.18),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #070d14 0%,
      #0d1723 46%,
      #111821 100%
    ) !important;
}

/* Header superior estilo index */
.account-topbar {
  background:
    linear-gradient(
      135deg,
      rgba(16, 24, 35, 0.94),
      rgba(20, 28, 40, 0.88)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;

  box-shadow:
    0 28px 70px
    rgba(0, 0, 0, 0.32) !important;
}

.account-topbar .account-kicker {
  color: #9ed2ff !important;
}

.account-brand h1 {
  color: #ffffff !important;
}

.account-brand p {
  color: rgba(219, 234, 254, 0.82) !important;
}

/* Logo */
.account-logo-box {
  background: #ffffff !important;
}

/* Botones superiores */
.account-back-link {
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    ) !important;
}

.account-logout-btn {
  background:
    linear-gradient(
      135deg,
      #ef3340,
      #b5121b
    ) !important;
}

/* Cards principales oscuras */
.account-card,
.password-card,
.security-note-card {
  background:
    linear-gradient(
      135deg,
      rgba(16, 24, 35, 0.96),
      rgba(20, 28, 40, 0.92)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;

  box-shadow:
    0 24px 60px
    rgba(0, 0, 0, 0.28) !important;
}

/* Títulos y textos */
.account-section-label {
  color: #9ed2ff !important;
}

.account-card h2,
.password-card-header h2,
.security-note-card h3 {
  color: #ffffff !important;
}

.account-card p,
.password-card-header p,
.security-note-card p {
  color: rgba(219, 234, 254, 0.78) !important;
}

/* Pill cuenta activa */
.account-status-pill {
  color: #7fffd4 !important;

  background:
    rgba(20, 184, 166, 0.16) !important;

  border: 1px solid rgba(20, 184, 166, 0.28) !important;
}

/* Cajitas de correo / rol / cargo */
.account-info-box {
  background:
    rgba(255, 255, 255, 0.055) !important;

  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.account-info-box span {
  color: rgba(219, 234, 254, 0.66) !important;
}

.account-info-box strong {
  color: #ffffff !important;
}

/* Labels formulario */
.form-group label {
  color: rgba(248, 250, 252, 0.94) !important;
}

/* Inputs oscuros */
.password-input-wrap {
  background:
    rgba(255, 255, 255, 0.06) !important;

  border: 1px solid rgba(255, 255, 255, 0.13) !important;
}

.password-input-wrap:focus-within {
  border-color: rgba(11, 79, 138, 0.92) !important;

  box-shadow:
    0 0 0 4px
    rgba(11, 79, 138, 0.20) !important;
}

.password-input-wrap input {
  color: #ffffff !important;
}

.password-input-wrap input::placeholder {
  color: rgba(219, 234, 254, 0.55) !important;
}

/* Botón Ver */
.toggle-password-btn {
  color: #9ed2ff !important;

  background:
    rgba(11, 79, 138, 0.18) !important;

  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.toggle-password-btn:hover {
  background:
    rgba(11, 79, 138, 0.32) !important;
}

/* Botones formulario */
.save-password-btn {
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    ) !important;
}

.clear-password-btn {
  color: #ffffff !important;

  background:
    rgba(255, 255, 255, 0.10) !important;
}

.clear-password-btn:hover {
  background:
    rgba(255, 255, 255, 0.16) !important;
}

/* Nota de seguridad */
.security-note-card {
  background:
    linear-gradient(
      135deg,
      rgba(16, 24, 35, 0.96),
      rgba(22, 32, 46, 0.92)
    ) !important;
}

.security-note-icon {
  background:
    rgba(11, 79, 138, 0.22) !important;
}

/* Mensajes */
.password-message.success {
  color: #7fffd4 !important;

  background:
    rgba(20, 184, 166, 0.14) !important;

  border: 1px solid rgba(20, 184, 166, 0.28) !important;
}

.password-message.error {
  color: #fecaca !important;

  background:
    rgba(239, 68, 68, 0.12) !important;

  border: 1px solid rgba(239, 68, 68, 0.28) !important;
}