.password-field {
  position: relative;
  display: block;
  margin-top: 7px;
}
.password-field input {
  margin-top: 0 !important;
  padding-right: 48px !important;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 38px !important;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 8px;
  background: transparent;
}
.password-toggle::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  width: 16px;
  height: 11px;
  border: 2px solid #667085;
  border-radius: 50% 10% / 55% 35%;
  transform: rotate(45deg);
}
.password-toggle::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 17px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #667085;
}
.password-toggle.is-visible::before { border-color: var(--brand); }
.password-toggle.is-visible::after { background: var(--brand); }

.accounts-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 38px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(118deg,#17213d 0%,#2d286f 61%,#176b69 135%);
  box-shadow: 0 18px 44px #28325d20;
}
.accounts-hero::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -125px;
  width: 330px;
  height: 330px;
  border: 1px solid #8ce5d638;
  border-radius: 50%;
  box-shadow: 0 0 0 48px #8ce5d60b,0 0 0 96px #8ce5d60b;
}
.accounts-hero > * { position: relative; z-index: 1; }
.accounts-hero h1 { margin: 5px 0 7px; font-size: 34px; letter-spacing: -.7px; }
.accounts-hero p:not(.eyebrow) { margin: 0; color: #cbd3e3; }
.accounts-hero .large { background: #fff; color: #282165; box-shadow: 0 8px 20px #10152640; }
.account-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 20px 0;
}
.account-stats article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px #2532550b;
}
.account-stats article div { display: flex; flex-direction: column; gap: 2px; }
.account-stats article strong { font-size: 27px; line-height: 1; }
.account-stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: #efeeff;
  color: #594fe1;
  font-size: 20px;
}
.account-stat-icon::before { content: '●'; }
.account-stat-icon.active { background: #eaf8f1; color: #158653; }
.account-stat-icon.active::before { content: '✓'; }
.account-stat-icon.shield { background: #e9f3ff; color: #2269ad; }
.account-stat-icon.shield::before { content: '◆'; }
.account-stat-icon.paused { background: #fff2eb; color: #c25a29; }
.account-stat-icon.paused::before { content: 'Ⅱ'; font-weight: 800; }
.account-directory {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px #2532550d;
}
.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.directory-toolbar h2 { margin: 0 0 4px; font-size: 20px; }
.directory-toolbar p { margin: 0; }
.account-search { position: relative; width: min(330px,100%); }
.account-search span { position: absolute; left: 13px; top: 8px; color: #8a94a5; font-size: 22px; }
.account-search input { width: 100%; padding-left: 39px; background: #f8f9fb; }
.account-table table { width: 100%; border-collapse: collapse; }
.account-table th {
  padding: 12px 26px;
  color: #7a8496;
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .65px;
}
.account-table td { padding: 17px 26px; border-top: 1px solid #edf0f4; vertical-align: middle; }
.account-table tbody tr { transition: background .15s ease; }
.account-table tbody tr:hover { background: #fafbff; }
.account-person { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.account-person > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.account-person strong { font-size: 14px; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg,#6559ed,#20a99e);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .5px;
}
.account-role { min-width: 145px; padding: 8px 34px 8px 10px; font-size: 13px; font-weight: 750; }
.role-description { display: block; margin-top: 4px; white-space: nowrap; font-size: 11px; }
.account-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 20px; font-size: 12px; font-weight: 750; }
.account-state i { width: 7px; height: 7px; border-radius: 50%; }
.account-state.is-active { color: #13764a; background: #eaf8f1; }
.account-state.is-active i { background: #19a464; box-shadow: 0 0 0 3px #bdebd4; }
.account-state.is-suspended { color: #a54c27; background: #fff0e9; }
.account-state.is-suspended i { background: #d86b3a; }
.account-status { min-width: 92px; padding: 8px 11px; border: 1px solid #d9dee7; background: #fff; font-size: 12px; }
.account-status.activate-action { color: #14774a; border-color: #b9e4cf; background: #f3fbf7; }
.account-status.suspend-action { color: #667085; }
.account-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.account-empty span { font-size: 32px; }
.account-empty h3 { margin: 8px 0 4px; color: var(--ink); }
.account-empty p { margin: 0; }

.account-modal-card { width: min(650px,100%); padding: 34px 38px; }
.account-modal-header { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-modal-header .modal-icon { flex: 0 0 46px; }
.account-modal-header .eyebrow { margin: 1px 0 4px; color: #5a4ee3; }
.account-modal-header h2 { margin: 0; }
.account-modal-header .meta { margin: 5px 0 0; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-modal-card label { margin-top: 17px; }
.account-modal-card label input,.account-modal-card label select { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; }
.account-modal-card label small { display: block; margin-top: 6px; font-weight: 500; }
.role-note { display: flex; gap: 11px; margin-top: 18px; padding: 13px 14px; border-radius: 10px; color: #4d5870; background: #f5f6fb; font-size: 12px; }
.role-note > span { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; color: #fff; background: #6559e7; font-weight: 800; }
.role-note p { margin: 0; line-height: 1.5; }

@media(max-width:900px) {
  .accounts-hero { align-items: flex-start; padding: 28px; }
  .account-stats { grid-template-columns: 1fr 1fr; }
  .directory-toolbar { align-items: flex-start; flex-direction: column; }
  .account-search { width: 100%; }
  .account-table { overflow: auto; }
  .account-table table { min-width: 820px; }
}
@media(max-width:600px) {
  .accounts-hero { flex-direction: column; }
  .account-stats { grid-template-columns: 1fr; }
  .account-form-grid { grid-template-columns: 1fr; gap: 0; }
  .account-modal-card { padding: 28px 22px; }
}
