/* FIDO2样式 - k4747.online定制 */
.fido2-nav-item {
    margin-left: auto;
    margin-right: 15px;
}

.btn-fido2-nav {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-fido2-nav:hover {
    background: #1565c0;
}

.fido2-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.fido2-floating-btn button {
    background: #1976d2;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.fido2-floating-btn button:hover {
    background: #1565c0;
}

/* 模态框样式 */
.fido2-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.fido2-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.fido2-modal-header {
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fido2-modal-header h3 {
    margin: 0;
    color: #333;
}

.fido2-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.fido2-close:hover {
    color: #333;
}

.fido2-modal-body {
    padding: 20px;
}

/* 标签页样式 */
.fido2-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.fido2-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #666;
}

.fido2-tab.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
}

.fido2-tab-content {
    display: none;
}

.fido2-tab-content.active {
    display: block;
}

/* 表单样式 */
.fido2-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group small {
    color: #666;
    font-size: 12px;
}

/* 按钮样式 */
.btn-fido2-primary {
    background: #1976d2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-bottom: 10px;
}

.btn-fido2-primary:hover {
    background: #1565c0;
}

.btn-fido2-secondary {
    background: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.btn-fido2-secondary:hover {
    background: #555;
}

/* 消息样式 */
.fido2-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
}

.fido2-success {
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.fido2-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.fido2-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
}

.fido2-loading {
    color: #666;
    font-style: italic;
}

/* 分割线 */
.fido2-divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.fido2-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.fido2-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

/* 凭证列表 */
.fido2-credentials-list {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.fido2-credential-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
    background: white;
}

.credential-info strong {
    display: block;
    margin-bottom: 4px;
}

.credential-date {
    font-size: 12px;
    color: #666;
}

.btn-delete {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.btn-delete:hover {
    background: #c62828;
}

/* 用户信息 */
.fido2-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.btn-logout {
    background: #666;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.btn-logout:hover {
    background: #555;
}
