/* Account administration and personal security screens. */
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.account-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}
.account-stat strong {
  font-size: 36px;
  font-weight: 650;
  line-height: 1;
  color: #7061d8;
  letter-spacing: -1.2px;
}
.account-stat span {
  color: var(--muted);
  font-size: 13px;
}
.accounts-panel {
  overflow: hidden;
  padding: 0;
}
.account-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid #e8e6f0;
}
.account-toolbar input {
  width: min(100%, 440px);
  min-width: 0;
  margin: 0;
}
.account-toolbar .secondary,
.account-toolbar .text-button {
  flex-shrink: 0;
}
.table-scroll {
  overflow-x: auto;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
  color: #202441;
  font-size: 14px;
}
.users-table th {
  background: #fcfbff;
  color: var(--muted);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.users-table th,
.users-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #eeedf4;
  vertical-align: middle;
}
.users-table td:first-child {
  min-width: 200px;
  max-width: 340px;
  overflow-wrap: anywhere;
}
.users-table th:last-child,
.users-table td:last-child {
  text-align: right;
}
.users-table tbody tr:last-child td {
  border-bottom: 0;
}
.users-table tbody tr:hover {
  background: #fcfbff;
}
.users-table strong {
  font-weight: 600;
}
.user-login {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.users-table .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  padding: 5px 9px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}
.users-table .status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.users-table .status-pill.active {
  color: #317664;
  background: #edf7f1;
}
.users-table .status-pill.inactive {
  color: var(--muted);
  background: #f0eff5;
}
.table-action {
  color: #7061d8;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.table-action:hover {
  color: #5442ba;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.users-table .empty-cell {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.accounts-panel .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border-top: 1px solid #e8e6f0;
  color: var(--muted);
  font-size: 13px;
}
.accounts-panel .pagination a {
  color: #7061d8;
}
.account-form-panel {
  max-width: 760px;
  padding: 32px;
}
.account-form-panel .form-field {
  margin-bottom: 22px;
}
.account-form-panel .form-field > label {
  display: block;
  margin-bottom: 8px;
  color: #202441;
  font-size: 13px;
  font-weight: 600;
}
.account-form-panel .form-field > label > span[aria-hidden] {
  color: #9187ca;
}
.account-form-panel input:not([type="checkbox"]),
.account-form-panel select {
  width: 100%;
  margin: 0;
  color: #202441;
  font: inherit;
}
.account-form-panel select {
  min-height: 46px;
  border: 1px solid #e8e6f0;
  border-radius: 10px;
  background: #fff;
  padding: 11px 13px;
}
.account-form-panel .form-field > .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  font-weight: 500;
}
.account-form-panel .checkbox input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #7061d8;
}
.account-form-panel .field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.account-form-panel > .field-help {
  margin-top: 22px;
}
.account-form-panel .field-error,
.account-form-panel .form-errors {
  color: #a13949;
  font-size: 12px;
  line-height: 1.6;
}
.account-form-panel .field-error {
  margin-top: 6px;
}
.account-form-panel .form-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fff2f4;
  border-radius: 10px;
}
.account-form-panel .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-form-panel .has-error input,
.account-form-panel .has-error select {
  border-color: #d79ca6;
}
.account-form-panel .form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8e6f0;
}
.account-password-section {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #e8e6f0;
}
.account-password-section h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 18px;
}
.account-password-section > .form-actions {
  margin-top: 18px;
  margin-bottom: 20px;
}
.account-password-section .muted {
  font-size: 13px;
}
.account-messages {
  margin-bottom: 24px;
}
.account-messages .notice {
  margin-bottom: 10px;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1100px;
  margin: 32px auto 56px;
}
.login-intro { min-width: 0; }
.login-layout .platform-capabilities {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.login-layout h1 {
  font-size: clamp(36px, 3.5vw, 54px);
  line-height: 1.18;
  letter-spacing: -1.7px;
}
.login-layout h1 .muted {
  color: #7061d8;
}
.login-layout .lead {
  max-width: 470px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.login-layout .steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}
.login-layout .steps span {
  padding: 0 0 0 14px;
  border-left: 2px solid #d9d3f4;
}
.login-panel {
  min-width: 0;
  padding: 30px;
  box-shadow: 0 14px 50px #35305808;
}
.login-panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.login-panel .muted {
  font-size: 13px;
  line-height: 1.7;
}
.login-panel form {
  margin-top: 24px;
}
.login-panel label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.login-panel input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.login-password-field { position: relative; }
.login-password-field input { padding-right: 50px; }
.login-panel .login-password-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
}
.login-panel .login-password-eye[hidden] { display: none; }
.login-password-eye:hover { color: #6550bd; background: #f3f0fc; }
.login-password-eye:focus-visible { outline: 2px solid #8771d9; outline-offset: 1px; }
.login-password-eye .login-eye-slash { display: none; }
.login-password-eye[aria-pressed="true"] .login-eye-slash { display: block; }
.login-panel .full {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 0;
}
.login-panel .login-recovery { margin: 18px 0 0; text-align: center; font-size: 13px; }
.login-panel > .small {
  margin: 22px 0 0;
  text-align: center;
  font-size: 11px;
}
.login-panel label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.login-panel .checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 540px;
    gap: 26px;
    margin: 20px auto 36px;
  }
}
@media (max-width: 700px) {
  .account-grid {
    gap: 10px;
  }
  .account-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 17px 14px;
  }
  .account-stat strong {
    font-size: 28px;
  }
  .account-stat span {
    font-size: 11px;
    line-height: 1.5;
  }
  .account-toolbar {
    flex-wrap: wrap;
    padding: 18px;
    gap: 10px;
  }
  .account-toolbar input {
    flex: 1 1 170px;
  }
  .users-table th,
  .users-table td {
    padding: 15px 18px;
  }
  .users-table {
    font-size: 12px;
  }
  .account-form-panel {
    padding: 22px 18px;
  }
  .account-form-panel .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .account-form-panel .form-actions > * {
    justify-content: center;
    text-align: center;
  }
  .login-layout {
    gap: 24px;
    margin: 12px auto 28px;
  }
  .login-layout h1 {
    font-size: 36px;
    letter-spacing: -1.1px;
  }
  .login-layout .steps {
    display: none;
  }
  .login-panel {
    padding: 26px 22px;
  }
}
