.account-page {
  background: #e7f1f8;
}

.account-page .section:hover {
  transform: none;
  box-shadow: 0 12px 30px rgba(22, 50, 74, 0.08);
}

.account-page .img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.account-page .img:hover {
  transform: none;
  box-shadow: none;
}

.account-page .account-stage {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 36px;
}

.account-page .account-stage:has(#login-section) {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  gap: 18px;
  align-items: start;
}

.account-page #Inicio-section.account-intro,
.account-page #user-info-section,
.account-page #Admin-section,
.account-page #User-section,
.account-page #login-section {
  background: #fff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(22, 50, 74, 0.08);
}

.account-page .account-kicker {
  margin: 0 0 6px;
  color: #2f6f9b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-page .account-intro h1,
.account-page #user-info-section h1,
.account-page #login-section h1 {
  margin-top: 0;
  text-align: left;
  color: #16324a;
}

.account-page .account-lead,
.account-page #login-section .account-lead,
.account-page .account-note {
  color: #5d7386;
  text-align: left;
  margin: 0 0 16px;
}

.account-page .perk-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.account-page .perk-list li {
  background: #f4f9fc;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}

.account-page .perk-list strong {
  display: block;
  color: #16324a;
  margin-bottom: 4px;
}

.account-page .perk-list span {
  color: #5d7386;
  line-height: 1.45;
}

.account-page .login-container {
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
  text-align: left;
  color: #16324a;
}

.account-page #login-section {
  background: #fff;
  padding: 8px 8px 18px;
}

.account-page #login-section form,
.account-page #login-section .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-page #login-section form {
  gap: 14px;
}

.account-page #login-section label {
  color: #16324a;
  font-size: 0.92rem;
  text-align: left;
}

.account-page #login-section input {
  background: #f7fbfe;
  color: #16324a;
  border: 1px solid #d5e3ee;
  border-radius: 12px;
  padding: 12px 14px;
}

.account-page #login-section input:focus {
  outline: 3px solid rgba(79, 147, 199, 0.28);
  border-color: #4f93c7;
}

.account-page #buttonis,
.account-page #Registro,
.account-page #logoutButton,
.account-page .account-actions .button-cart,
.account-page .account-actions .button-contact {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.account-page #buttonis {
  background: linear-gradient(90deg, #4f93c7, #6aabd4);
  color: #fff;
}

.account-page #buttonis:hover,
.account-page #Registro:hover {
  background: #2f6f9b;
  color: #fff;
  transform: none;
}

.account-page #Registro {
  background: transparent;
  color: #2f6f9b;
  border: 1px solid #d5e3ee;
}

.account-page .auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #5d7386;
}

.account-page #error-message {
  color: #9f1d1d;
  background: #fdecec;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
}

.account-page .account-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.account-page .account-actions,
.account-page .account-actions .button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.account-page #logoutButton {
  background: #16324a;
  color: #fff;
}

.account-page #logoutButton:hover {
  background: #0e2233;
  color: #ffd700;
  transform: none;
}

.account-page .admin-head h2,
.account-page #User-section h2,
.account-page .admin-card h3 {
  text-align: left;
  margin: 0;
  color: #16324a;
}

.account-page .admin-grid {
  display: grid;
  gap: 16px;
}

.account-page .admin-card {
  background: #f7fbfe;
  border: 1px solid #e1edf5;
  border-radius: 16px;
  padding: 8px 14px;
}

.account-page .admin-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #16324a;
  text-align: left;
  cursor: pointer;
}

.account-page .admin-toggle:hover {
  background: #e7f2f9;
  color: #16324a;
}

.account-page .admin-toggle h3 {
  font-size: 1.15rem;
}

.account-page .admin-toggle p {
  margin: 4px 0 0;
  color: #5d7386;
  text-align: left;
  font-weight: 500;
}

.account-page .admin-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #2f6f9b;
  border-bottom: 2px solid #2f6f9b;
  transform: rotate(45deg);
  flex: none;
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.account-page .admin-toggle[aria-expanded="true"] .admin-chevron {
  transform: rotate(225deg);
}

.account-page .admin-panel {
  margin: 4px 0 10px;
}

.account-page .admin-panel[hidden] {
  display: none;
}

.account-page .admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.account-page .admin-card-head p,
.account-page #User-section > p {
  margin: 4px 0 0;
  color: #5d7386;
  text-align: left;
}

.account-page .table-scroll {
  overflow-x: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e1edf5;
}

.account-page #Movimientos,
.account-page #Inventario,
.account-page #UsuariosInnova,
.account-page #Registros {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #16324a;
  text-align: left;
}

.account-page #Inventario,
.account-page #UsuariosInnova,
.account-page #Registros {
  min-width: 640px;
}

.account-page #Admin-section th,
.account-page #Admin-section td,
.account-page #User-section th,
.account-page #User-section td {
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #e6eef5;
  vertical-align: middle;
  font-size: 0.92rem;
  text-align: left;
  color: #16324a;
  background: transparent;
}

.account-page #Admin-section thead th,
.account-page #User-section thead th {
  position: sticky;
  top: 0;
  background: #16324a;
  color: #f4f8fb;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-page #Admin-section tbody tr:nth-child(even),
.account-page #User-section tbody tr:nth-child(even) {
  background: #f4f9fc;
}

.account-page #Admin-section input,
.account-page #Admin-section select,
.account-page #User-section input {
  width: 100%;
  min-width: 110px;
  padding: 8px 10px;
  border: 1px solid #c5d5e2;
  border-radius: 8px;
  background: #fff;
  color: #16324a;
}

.account-page #Admin-section .update-username-btn,
.account-page #Admin-section .aceptar-btn {
  background: #4f93c7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}

.account-page #Admin-section .update-username-btn:hover,
.account-page #Admin-section .aceptar-btn:hover {
  background: #2f6f9b;
  color: #fff;
}

.account-page #Admin-section .stock-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-page #Admin-section .stock-add input {
  max-width: 110px;
}

@media (max-width: 860px) {
  .account-page .account-stage,
  .account-page .account-stage:has(#login-section) {
    display: block;
    width: min(100% - 16px, 1180px);
  }

  .account-page .account-hero,
  .account-page .auth-switch,
  .account-page .admin-card-head {
    display: block;
  }

  .account-page .account-actions,
  .account-page .account-actions .button-container {
    margin-top: 14px;
  }

  .account-page #Registro,
  .account-page #buttonis,
  .account-page #logoutButton {
    width: 100%;
  }

  .account-page .img {
    height: 140px;
  }
}
