/* Admin auth pages — login, invite-accept, forgot/reset password, and the
   approvals dashboard page. core/headers/NavigationMenu.php provides
   .headbar's fixed-nav offset (Navigation.css). */

.headbar {
  padding: 10px 20px;
  background-image: linear-gradient(220deg, rgba(101, 157, 189, .6) 30%, rgba(153, 102, 102, .6) 70%);
}

.breadcrumb {
  list-style: none;
}
.breadcrumb li {
  display: inline;
  font-size: .75rem;
}
.breadcrumb li + li::before {
  padding: 0 6px;
  color: purple;
  content: "/\00a0";
}
.breadcrumb li a {
  color: #fff;
  text-decoration: none;
}
.breadcrumb li a:hover {
  color: #01447e;
  text-decoration: underline;
}

/* --- Login / invite / forgot / reset cards --- */

.admin-auth-layout {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.admin-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
}
.admin-auth-card h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  color: #132a63;
  text-align: center;
}

.admin-auth-intro {
  margin: 0 0 1.25rem;
  color: #444;
  line-height: 1.6;
  font-size: .95rem;
}

.admin-auth-alert {
  margin: 0 0 1.25rem;
  padding: .85rem 1.1rem;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.5;
}
.admin-auth-alert--success {
  background: #e6f4ea;
  border: 1px solid #b7dfc2;
  color: #1e4620;
}
.admin-auth-alert--error {
  background: #fdecea;
  border: 1px solid #f3c2bd;
  color: #611a15;
}
.admin-auth-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.admin-auth-form {
  display: grid;
  gap: 1rem;
}
.admin-auth-form label {
  display: block;
  margin-bottom: .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: #333;
}
.admin-auth-form input[type="text"],
.admin-auth-form input[type="email"],
.admin-auth-form input[type="password"] {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #c7ccd1;
  border-radius: 6px;
  font: inherit;
}
.admin-auth-form input:disabled {
  background: #f2f3f5;
  color: #777;
}
.admin-auth-form input:focus {
  outline: 2px solid #132a63;
  outline-offset: 1px;
}
.admin-auth-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.admin-auth-form button {
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 6px;
  background: #132a63;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-auth-form button:hover {
  background: #0d1e47;
}

.admin-auth-hint {
  margin: .35rem 0 0;
  font-size: .78rem;
  color: #666;
}

/* --- Password field: view/hide toggle + strength meter ---
   The <meter> itself reuses the colour-coded 1-4 styling already defined
   globally in Master-Layout.css; this just adds spacing and the toggle
   button. See core/js/PasswordStrength.js for the behaviour. */
.password-field {
  position: relative;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 2.75rem !important;
}
/* .admin-auth-form button (specificity 0,1,1) would otherwise beat the
   .password-toggle class alone (0,1,0) and paint this as a navy
   submit-button — matching that specificity here makes these rules always
   win, wherever the field is used (login, register, reset, and the
   dashboard settings/change-password pages, which all share this
   stylesheet). Icon-only by design: no background or border in any state. */
.admin-auth-form .password-toggle,
.password-toggle {
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
  border: 0;
  background: none;
  padding: .4rem;
  margin: 0;
  cursor: pointer;
  color: #8a8f98;
  font-size: 1rem;
  line-height: 1;
}
.admin-auth-form .password-toggle:hover,
.password-toggle:hover {
  background: none;
  color: #132a63;
}
.admin-auth-form .password-toggle:focus-visible,
.password-toggle:focus-visible {
  background: none;
  outline: 2px solid #132a63;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Revealed state — the icon swaps to fa-eye-slash (core/js/PasswordStrength.js),
   which already draws the bar across the eye; this just recolours it red so
   the "password is visible" state reads as a warning, still with no
   background. */
.admin-auth-form .password-toggle .fa-eye-slash,
.password-toggle .fa-eye-slash {
  color: #d5372e;
}
.admin-auth-form .password-toggle:hover .fa-eye-slash,
.password-toggle:hover .fa-eye-slash {
  color: #b3271f;
}

.admin-auth-form meter {
  display: block;
  margin: .6rem 0 .25rem;
}
.password-strength-text {
  margin: 0 0 .35rem;
  min-height: 1.1em;
  font-size: .78rem;
  color: #666;
}

.admin-auth-links {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: .9rem;
}
.admin-auth-links a {
  color: #132a63;
}

.admin-auth-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .8rem;
  color: #777;
}

/* --- Approvals dashboard page --- */

.admin-approvals-layout {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.25rem 2.5rem;
}
.admin-approvals-layout h1 {
  margin: 0 0 1.5rem;
  color: #132a63;
}

.admin-approvals-section {
  margin-bottom: 2.5rem;
}
.admin-approvals-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #132a63;
}
.admin-approvals-count {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: #c9a227;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.admin-approvals-invite-form {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}
.admin-approvals-invite-form label {
  display: block;
  margin-bottom: .3rem;
  font-size: .85rem;
  font-weight: 600;
}
.admin-approvals-invite-form input {
  padding: .65rem .75rem;
  border: 1px solid #c7ccd1;
  border-radius: 6px;
  font: inherit;
  min-width: 280px;
}
.admin-approvals-invite-form button {
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: 6px;
  background: #132a63;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.admin-approvals-invite-form button:hover {
  background: #0d1e47;
}

.admin-approvals-empty {
  color: #777;
  font-size: .9rem;
}

.admin-approvals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.admin-approvals-table th,
.admin-approvals-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
}
.admin-approvals-table th {
  color: #666;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-approvals-actions {
  display: flex;
  gap: .5rem;
}
.admin-approvals-btn {
  padding: .4rem .9rem;
  border: 0;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-approvals-btn--approve {
  background: #1e7e34;
  color: #fff;
}
.admin-approvals-btn--approve:hover {
  background: #17632a;
}
.admin-approvals-btn--reject {
  background: #b02a37;
  color: #fff;
}
.admin-approvals-btn--reject:hover {
  background: #8c212b;
}
