/* Edale Passkeys — kept deliberately plain so it sits inside the portal's own cards and forms. */

/* The hidden attribute must beat this file's own display rules and the theme's (.btn is inline-flex). */
.edale-passkeys [hidden] { display: none !important; }

.edale-passkeys-signin { margin-top: 18px; }
.edale-passkeys-or { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #6b7280; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.edale-passkeys-or::before, .edale-passkeys-or::after { content: ""; flex: 1; height: 1px; background: #e0e0e0; }
.edale-passkeys-login {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 12px 16px; border: 1px solid #2C3E50; border-radius: 6px; background: #fff; color: #2C3E50;
  font: inherit; font-weight: 600; cursor: pointer;
}
.edale-passkeys-login::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='7' r='4' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 10-4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='17' cy='14' r='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M17 17v5m0-2h2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='7' r='4' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 10-4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='17' cy='14' r='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M17 17v5m0-2h2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.edale-passkeys-login:hover:not(:disabled) { background: #f4f6f8; }
.edale-passkeys-login:disabled { opacity: .6; cursor: progress; }
.edale-passkeys-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; color: #2C3E50; }
#loginform .edale-passkeys-signin { clear: both; padding-top: 4px; }

.edale-passkeys-intro { margin-top: 0; }
.edale-passkeys-list { list-style: none; margin: 0 0 12px; padding: 0; }
.edale-passkeys-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 12px 0; border-top: 1px solid #e0e0e0;
}
.edale-passkeys-item:last-child { border-bottom: 1px solid #e0e0e0; }
.edale-passkeys-name { font-weight: 600; }
.edale-passkeys-meta { grid-column: 1; font-size: 13px; color: #6b7280; }
.edale-passkeys-remove {
  grid-column: 2; grid-row: 1 / span 2; padding: 6px 12px; border: 1px solid #e0e0e0; border-radius: 6px;
  background: #fff; color: #9b2c2c; font: inherit; font-size: 14px; cursor: pointer;
}
.edale-passkeys-remove[data-armed] { background: #9b2c2c; border-color: #9b2c2c; color: #fff; }
.edale-passkeys-empty { color: #6b7280; }
.edale-passkeys-confirm { display: grid; gap: 8px; max-width: 360px; }
.edale-passkeys-confirm label { font-weight: 600; font-size: 14px; }
.edale-passkeys-confirm input { padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font: inherit; }
.edale-passkeys-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.edale-passkeys--admin { max-width: 640px; }
