/* ============================================================
   ARA — login, user box, modal, dan halaman pengguna
   ============================================================ */

.auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(99, 102, 241, .35), transparent 60%),
    radial-gradient(700px 420px at 5% 105%, rgba(6, 182, 212, .25), transparent 60%),
    linear-gradient(160deg, #060d1c, #0a1a33 58%, #081426);
  color: #e8f1fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-shell { width: 100%; max-width: 430px; padding: 24px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(99, 102, 241, .55), rgba(6, 182, 212, .32));
  border: 1px solid rgba(148, 197, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px rgba(37, 99, 235, .25);
  color: #e6f9ff;
}
.auth-brand .brand-mark svg { width: 25px; height: 25px; }
.auth-brand strong { display: block; font-size: 21px; letter-spacing: .6px; }
.auth-brand span { display: block; font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #8fb2d6; margin-top: 3px; }
.auth-card {
  background: rgba(17, 26, 43, .92);
  border: 1px solid rgba(148, 197, 255, .16);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.auth-card h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.4px; }
.auth-card .auth-sub { color: #9fb3cc; font-size: 12.5px; margin: 0 0 22px; line-height: 1.6; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 11px; font-weight: 700; color: #9fb3cc; letter-spacing: .5px; text-transform: uppercase; }
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148, 197, 255, .22);
  background: rgba(6, 13, 28, .55);
  color: #f1f7ff;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.auth-field input:focus { border-color: #67e8f9; box-shadow: 0 0 0 3px rgba(103, 232, 249, .12); }
.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4059f6, #6366f1);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(64, 89, 246, .35);
  transition: transform .16s, filter .16s;
}
.auth-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.auth-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(244, 63, 94, .14);
  border: 1px solid rgba(244, 63, 94, .3);
  color: #fecdd3;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.auth-info {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(14, 165, 233, .25);
  color: #bae6fd;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.auth-note { margin: 18px 0 0; font-size: 10.5px; color: #7f9ec0; line-height: 1.6; text-align: center; }
.auth-note a { color: #93c5fd; }
.hidden { display: none !important; }

/* ---------------------------- user box ---------------------------- */
.ara-userbox {
  margin: 12px 4px 14px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #e8f1fb;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}
.ara-user-main { display: flex; align-items: center; gap: 9px; }
.ara-avatar {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, .65), rgba(6, 182, 212, .45));
  font-size: 12px; font-weight: 800; color: #fff;
}
.ara-user-main div { min-width: 0; }
.ara-user-main strong { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ara-user-main small { display: block; color: #8fb2d6; font-size: 9.5px; text-transform: uppercase; letter-spacing: .7px; margin-top: 1px; }
.ara-user-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ara-user-actions a,
.ara-user-actions button {
  border: 0; background: transparent; color: #9fb3cc; font: inherit;
  font-size: 10px; padding: 4px 6px; border-radius: 6px; cursor: pointer;
  text-decoration: none;
}
.ara-user-actions a:hover,
.ara-user-actions button:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ara-user-actions .danger:hover { background: rgba(244, 63, 94, .2); color: #fecdd3; }

/* --------------------------- password modal --------------------------- */
.ara-dialog {
  border: 1px solid #24344d;
  border-radius: 18px;
  background: #101a2b;
  color: #e2e8f0;
  padding: 0;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.ara-dialog::backdrop { background: rgba(4, 10, 20, .65); backdrop-filter: blur(3px); }
.ara-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #223149; }
.ara-dialog-head h2 { margin: 0; font-size: 17px; }
.ara-dialog-close { border: 0; background: transparent; color: #94a3b8; font-size: 20px; cursor: pointer; line-height: 1; }
.ara-dialog-body { padding: 18px 20px; }
.ara-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid #223149; }
.ara-dialog .auth-field label { color: #94a3b8; }
.ara-dialog .auth-field input { background: #0b1424; border-color: #2b3d58; }
.ara-dialog .auth-submit { width: auto; padding: 9px 16px; }
.ara-btn-secondary {
  border: 1px solid #2b3d58; background: transparent; color: #cbd5e1;
  border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 12px; cursor: pointer;
}
.ara-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  background: #0f766e; color: #fff; border-radius: 12px;
  padding: 11px 15px; font: 600 12px/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}

/* ----------------------------- users page ----------------------------- */
.users-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 18px; }
.user-table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-600);
  border-radius: 7px; padding: 4px 8px; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer;
}
.mini-btn:hover { border-color: #b9c8dd; color: var(--ink-900); }
.mini-btn.danger { color: #be123c; border-color: #fecdd3; background: #fff1f2; }
.mini-btn.danger:hover { background: #ffe4e6; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.access-group { border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: #fbfcff; }
.access-group h4 { margin: 0 0 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-400); }
.access-check { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 11px; color: var(--ink-700); }
.access-check input { accent-color: #4059f6; }
.role-pill { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.role-pill.superadmin { background: #eef2ff; color: #4338ca; }
.role-pill.user { background: #ecfdf5; color: #047857; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.status-dot i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.status-dot.off i { background: #94a3b8; }
.user-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.user-form-grid .full { grid-column: 1 / -1; }
.modal-wide { width: min(660px, calc(100vw - 28px)); }
.modal-note { font-size: 10.5px; color: #94a3b8; line-height: 1.55; margin: 4px 0 12px; }
.check-line { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #cbd5e1; }
@media (max-width: 980px) {
  .users-layout { grid-template-columns: 1fr; }
  .access-grid, .user-form-grid { grid-template-columns: 1fr; }
}

/* --------------------------- password banner --------------------------- */
.ara-password-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -6px 0 16px; padding: 10px 14px;
  border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; font-size: 12px; font-weight: 600;
}
.ara-password-banner button {
  border: 0; border-radius: 8px; background: #b45309; color: #fff;
  padding: 6px 10px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.ara-password-banner button:hover { background: #92400e; }
