/* Passkey management page styles. Matches dashboard tokens. */

.passkey-list {
    list-style: none;
    margin: 24px 0 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.passkey-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.passkey-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.passkey-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.passkey-meta {
    min-width: 0;
}

.passkey-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    overflow-wrap: anywhere;
}

.passkey-name-input {
    font: inherit;
    color: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    width: min(320px, 100%);
}

.passkey-dates {
    font-size: 13px;
    color: #64748b;
}

.passkey-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.passkey-actions button {
    font: inherit;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 13px;
}

.passkey-actions .btn-rename {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
}

.passkey-actions .btn-rename:hover { background: #e2e8f0; }

.passkey-actions .btn-revoke {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.passkey-actions .btn-revoke:hover { background: #fee2e2; }

.passkey-actions .btn-save {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.passkey-actions .btn-save:hover { background: #1d4ed8; }

.passkey-empty {
    margin: 24px 0;
    padding: 28px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
}

.passkey-empty p {
    margin: 0 0 16px 0;
    color: #475569;
}

.passkey-note {
    margin-top: 32px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.passkey-note a { color: #2563eb; }

.error-msg {
    margin: 16px 0;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
}

.success-msg {
    margin: 16px 0;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 8px;
}

.hidden { display: none !important; }

@media (max-width: 640px) {
    .passkey-card {
        flex-direction: column;
        align-items: stretch;
    }
    .passkey-actions {
        justify-content: flex-start;
    }
}
